Escaped go modules cannot be used properly when passed via --library #5729
Labels
kind: bug
Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
priority: next
Will consider working on this after in progress work is done
Dafny version
latest-nightly
Code to produce this issue
First compile this file into a go module using something like
dafny translate go --go-module-name SomeGoModuleName
Then,
Translate this file into a go module using
--library mathlib.dfy
and make sure to use the generated Go code ofmathlib.dfy
The command should look like
dafny translate go --go-module-name SomeOtherGoModuleName --library mathlib.dfy --translation-record $(PATH_TO_MATHLIB.DTR)
What happened?
In the second project, it incorrectly imports
Math "...Math"
instead of_Math "....Math_"
, making Go unable to resolve the fileWhat type of operating system are you experiencing the problem on?
Windows
The text was updated successfully, but these errors were encountered: