mirror of
https://github.com/pesde-pkg/pesde.git
synced 2024-12-12 11:00:36 +00:00
refactor: always use target names in packages folders
This commit is contained in:
parent
bc86c2f1c5
commit
863a09ef65
1 changed files with 6 additions and 3 deletions
|
@ -75,9 +75,12 @@ impl TargetKind {
|
|||
/// The folder to store packages in for this target
|
||||
/// self is the project's target, dependency is the target of the dependency
|
||||
pub fn packages_folder(&self, dependency: &Self) -> String {
|
||||
if self == dependency {
|
||||
return "packages".to_string();
|
||||
}
|
||||
// the code below might seem better, but it's just going to create issues with users trying
|
||||
// to use a build script, since imports would break between targets
|
||||
|
||||
// if self == dependency {
|
||||
// return "packages".to_string();
|
||||
// }
|
||||
|
||||
format!("{dependency}_packages")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue