You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
//+gobraimport"pkg/math"funcclient() {
assertmath.Bar() ==1
}
pkg/util/util.gobra
package util
//+gobraghostdecreasespurefuncFoo() int {
return1
}
pkg/math/math.gobra
package math
//+gobraimport"util"ghostdecreasespurefuncBar() int {
returnutil.Foo()
}
Verifying pkg on its own works fine: Running gobra -r -I . in pkg yields no errors.
Verifying the client project, however, does not work: gobra -I . -p . yields the following error:
19:13:19.993 [thread-6] ERROR viper.gobra.reporting.FileWriterReporter - Error at: <./pkg/math/math.gobra:4:8> ./pkg/math/math.gobra:4:8:error: Explicit qualifier could not be derived (reason: 'No existing directory found for import path 'util'')
import "util"
^
19:13:20.000 [thread-14] ERROR viper.gobra.reporting.FileWriterReporter - Error at: <./main.gobra:3:8> ./main.gobra:3:8:error: Package contains 1 error(s): ./pkg/math/math.gobra:4:8:error: Explicit qualifier could not be derived (reason: 'No existing directory found for import path 'util'')
import "util"
^
import "pkg/math"
^
Note that changing the import in pkg/math from import "util" to import "pkg/util" is not sufficient, as this will break verification of pkg on its own.
The text was updated successfully, but these errors were encountered:
In a setup containing nested projects, such as when including dependencies as git submodules, importing packages from that dependency is not possible.
Below is a simplified structure from including
viperproject/gobra-libs
:main.gobra
pkg/util/util.gobra
pkg/math/math.gobra
Verifying
pkg
on its own works fine: Runninggobra -r -I .
inpkg
yields no errors.Verifying the client project, however, does not work:
gobra -I . -p .
yields the following error:Note that changing the import in
pkg/math
fromimport "util"
toimport "pkg/util"
is not sufficient, as this will break verification ofpkg
on its own.The text was updated successfully, but these errors were encountered: