-
Notifications
You must be signed in to change notification settings - Fork 204
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
Duplicate module name when importing transitive dependencies #2929
Labels
Comments
The issue appears to be that we end up with |
cocreature
added a commit
to haskell/ghcide
that referenced
this issue
Sep 23, 2019
This only matters for the DAML codebase (so I’ll add a test on that side) where we use relative paths: Previously, we would produce the include dir "." for moduleImportPath "./A.daml" and "" for moduleImportPath "./A/B.daml". This resulted in us ending up with ./A.daml and A.daml in the Shake graph which resulted in issues like digital-asset/daml#2929. We should move this logic completely over to the DAML repo at some point but I’ll leave that for a separate PR.
cocreature
added a commit
that referenced
this issue
Sep 23, 2019
See haskell/ghcide#114 for the actual fix. This PR just bumps ghcide and adds a regression test. I’ll change the revision before merging, I just want to test CI for now. fixes #2929
6 tasks
cocreature
added a commit
that referenced
this issue
Sep 23, 2019
See haskell/ghcide#114 for the actual fix. This PR just bumps ghcide and adds a regression test. I’ll change the revision before merging, I just want to test CI for now. fixes #2929
cocreature
added a commit
to haskell/ghcide
that referenced
this issue
Sep 23, 2019
This only matters for the DAML codebase (so I’ll add a test on that side) where we use relative paths: Previously, we would produce the include dir "." for moduleImportPath "./A.daml" and "" for moduleImportPath "./A/B.daml". This resulted in us ending up with ./A.daml and A.daml in the Shake graph which resulted in issues like digital-asset/daml#2929. We should move this logic completely over to the DAML repo at some point but I’ll leave that for a separate PR.
cocreature
added a commit
that referenced
this issue
Sep 23, 2019
See haskell/ghcide#114 for the actual fix. This PR just bumps ghcide and adds a regression test. I’ll change the revision before merging, I just want to test CI for now. fixes #2929
mergify bot
pushed a commit
that referenced
this issue
Sep 23, 2019
* Use a consistant include dir for cwd See haskell/ghcide#114 for the actual fix. This PR just bumps ghcide and adds a regression test. I’ll change the revision before merging, I just want to test CI for now. fixes #2929 * Switch to proper ghcide revision * writeIfacesAndHie no longer exists * Add changelog entry * Maybe I should try to compile code before committing but I don’t want to * Fix ghcide exe
pepeiborra
pushed a commit
to pepeiborra/ide
that referenced
this issue
Dec 29, 2020
This only matters for the DAML codebase (so I’ll add a test on that side) where we use relative paths: Previously, we would produce the include dir "." for moduleImportPath "./A.daml" and "" for moduleImportPath "./A/B.daml". This resulted in us ending up with ./A.daml and A.daml in the Shake graph which resulted in issues like digital-asset/daml#2929. We should move this logic completely over to the DAML repo at some point but I’ll leave that for a separate PR.
pepeiborra
pushed a commit
to pepeiborra/ide
that referenced
this issue
Dec 29, 2020
This only matters for the DAML codebase (so I’ll add a test on that side) where we use relative paths: Previously, we would produce the include dir "." for moduleImportPath "./A.daml" and "" for moduleImportPath "./A/B.daml". This resulted in us ending up with ./A.daml and A.daml in the Shake graph which resulted in issues like digital-asset/daml#2929. We should move this logic completely over to the DAML repo at some point but I’ll leave that for a separate PR.
pepeiborra
pushed a commit
to pepeiborra/ide
that referenced
this issue
Dec 29, 2020
This only matters for the DAML codebase (so I’ll add a test on that side) where we use relative paths: Previously, we would produce the include dir "." for moduleImportPath "./A.daml" and "" for moduleImportPath "./A/B.daml". This resulted in us ending up with ./A.daml and A.daml in the Shake graph which resulted in issues like digital-asset/daml#2929. We should move this logic completely over to the DAML repo at some point but I’ll leave that for a separate PR.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I
daml build
the project in auth.zip I get:Fact.Claim
is a dependency ofRule.Application
, and it is also imported explicitly inLibrary.daml
. I'd expect the compiler to recognise that these are the same module. Note that in the IDE everything works fine, it's justdaml build
that complains.The text was updated successfully, but these errors were encountered: