mirror of
https://github.com/pesde-pkg/pesde.git
synced 2024-12-12 11:00:36 +00:00
fix: remove default.project.json from git pesde dependencies
This commit is contained in:
parent
09820e322c
commit
620777cacf
2 changed files with 11 additions and 0 deletions
|
@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
## [Unreleased]
|
||||
### Fixed
|
||||
- Use a different algorithm for finding a CAS directory to avoid issues with mounted drives by @daimond113
|
||||
- Remove default.project.json from Git pesde dependencies by @daimond113
|
||||
|
||||
### Changed
|
||||
- Switched to fs-err for better errors with file system operations by @daimond113
|
||||
|
|
|
@ -14,6 +14,7 @@ use crate::{
|
|||
git::{pkg_ref::GitPackageRef, specifier::GitDependencySpecifier},
|
||||
git_index::GitBasedSource,
|
||||
specifiers::DependencySpecifiers,
|
||||
traits::PackageRef,
|
||||
PackageSource, ResolveResult, VersionId, IGNORED_DIRS, IGNORED_FILES,
|
||||
},
|
||||
util::hash,
|
||||
|
@ -445,6 +446,15 @@ impl PackageSource for GitPackageSource {
|
|||
continue;
|
||||
}
|
||||
|
||||
if pkg_ref.use_new_structure() && path == "default.project.json" {
|
||||
log::debug!(
|
||||
"removing default.project.json from {}#{} - using new structure",
|
||||
pkg_ref.repo,
|
||||
pkg_ref.tree_id
|
||||
);
|
||||
continue;
|
||||
}
|
||||
|
||||
let data = object.into_blob().data.clone();
|
||||
let hash = store_in_cas(project.cas_dir(), &data)?.0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue