Skip to content

Commit

Permalink
downloadCargoPackageFromGit: resolve symlinks in crate directory (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
ipetkov authored Aug 12, 2023
1 parent 1b8653a commit 7809d36
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Changed
* `buildTrunkPackage` will now use `dart-sass` instead of `nodePackages.sass`
* Vendoring git dependencies will now always resolve symlinks inside of a
crate's directory. This allows for symlinks inside of a crate's directory to
possibly refer to files at the root of the git repo itself (via symlink) and
have those contents preserved during vendoring.

## [0.13.0] - 2023-08-07

Expand Down
6 changes: 3 additions & 3 deletions checks/simple-git-workspace-inheritance/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/downloadCargoPackageFromGit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ runCommandLocal "cargo-git" deps ''
fi
local dest="$out/$crate"
cp -r "$(dirname "$cargoToml")" "$dest"
cp -rL "$(dirname "$cargoToml")" "$dest"
chmod +w "$dest"
echo '{"files":{}, "package":null}' > "$dest/.cargo-checksum.json"
Expand Down

0 comments on commit 7809d36

Please sign in to comment.