Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect resolution of local path dependencies included with [source] in a root project setup #3989

Open
JanisErdmanis opened this issue Aug 12, 2024 · 1 comment

Comments

@JanisErdmanis
Copy link

There seems to be an oversight in the implementation of [sources] for the local path and its interaction with a workflow that uses a root project. In particular, I have a temporary dependency put within the existing package ShuffleProofs, and I have the following [sources] section:

[sources]
SigmaProofs = {path = "SigmaProofs"}        

When activating the project at ShuffleProofs, the dependency is correctly located, indicating that the setup is done accurately.

I use the root project setup extensively and have the following directory structure:

├── AppBundler
├── CryptoGroups
├── CryptoPRG
├── CryptoSignatures
├── HistoryTrees
├── Manifest.toml
├── PeaceFounder
├── PeaceFounderAdmin
├── PeaceFounderClient
├── PeaceFounderCompiled
├── PeaceFounderDemo
├── Project.toml
├── ShuffleProofs
├── TallyProofs
└── [peacefounder.org](http://peacefounder.org/)

where every dependency is added with dev in the project. When I activate this root project and load ShuffleProofs, it tries to find SigmaProofs in the wrong location:

(Github) pkg> test ShuffleProofs
     Testing ShuffleProofs
ERROR: expected package `SigmaProofs [f8559b4c]` to exist at path `/Users/jerdmanis/BtSync/PeaceFounder/Github/SigmaProofs

where instead, it should be located at /Users/jerdmanis/BtSync/PeaceFounder/Github/ShuffleProofs/SigmaProofs. For now, I have resolved the situation by making a soft link in the root project.

@KristofferC
Copy link
Member

Maybe dup of #3842

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants