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

Dependency conflicts with Trunk 0.7.0+ #82

Closed
MartinKavik opened this issue Oct 15, 2020 · 3 comments · Fixed by #83
Closed

Dependency conflicts with Trunk 0.7.0+ #82

MartinKavik opened this issue Oct 15, 2020 · 3 comments · Fixed by #83
Labels
discussion This item needs some discussion

Comments

@MartinKavik
Copy link
Contributor

MartinKavik commented Oct 15, 2020

Command + Error:

$ trunk serve
Error during execution of `cargo metadata`: error: package collision in the lockfile: packages seed v0.7.0 (C:\work\repos\seed) and seed v0.7.0 (C:\work\repos\stremio-seed-poc\../seed) are different, but only one can be written to lockfile unambiguously
 server running at http://127.0.0.1:8080/
   trunk | error
@thedodd
Copy link
Member

thedodd commented Oct 15, 2020

Hmmm, I'll definitely investigate, but I'm skeptical that it is a Trunk issue. Trunk doesn't do anything with dependencies, its own dependencies have no impact on a user's project. Based on the error output, it looks like Seed has a dependency issue in its own lockfile.

Does a normal cargo build --target=wasm32-unknown-unknown && a normal cargo metadata work as expected for your project? Trunk just calls cargo, it shouldn't have an impact on this sort of stuff.

If it is an issue with Trunk, it would only be related to the way cargo is called.

@thedodd thedodd added the discussion This item needs some discussion label Oct 15, 2020
@thedodd
Copy link
Member

thedodd commented Oct 15, 2020

Based on some offline discussion, it appears as though this may be a Windows specific issue ... as the same problem is not taking place in *nix environments. More investigation is needed.

@MartinKavik
Copy link
Contributor Author

Investigation in README: https://github.com/MartinKavik/trunk-debug-deps
I'll create a PR with fix.

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

Successfully merging a pull request may close this issue.

2 participants