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
Hey, I'm trying to use the codegen in Fiano, but I have cloned the repo somewhere in my projects directory, not in ~/go/src:
$ go run ./pkg/intel/metadata/common/manifestcodegen/cmd/manifestcodegen -package bg ./pkg/intel/metadata/bg/bgkey
2023/01/15 17:54:56 an error: unable to analyze path './pkg/intel/metadata/bg/bgkey': unable to get the package from directory './pkg/intel/metadata/bg/bgkey': unable to open go directory: unable to normalize pkg path '': unable to find directory './pkg/intel/metadata/bg/bgkey'in paths [/usr/lib/go-1.18/src /home/dama/go/src]
Initially the code of gosrc was written for pre-gomodules environment :(
So basically it works only with GO111MODULE=off. I've provided a bit more details in the initial task.
Hey, I'm trying to use the codegen in Fiano, but I have cloned the repo somewhere in my projects directory, not in
~/go/src
:So I ended up here:
https://github.com/xaionaro-go/gosrc/blob/master/directory.go#L148-L156
Coming from:
https://github.com/linuxboot/fiano/blob/8a127a636eef8e937572f050fad083972dff737a/pkg/intel/metadata/common/manifestcodegen/pkg/analyze/scan.go#L46
So I tried the following:
adding this
and then later, instead of
nil
, passing the above function to the importer:However, this errors:
Indeed, this is not yet supported: https://github.com/golang/go/blob/1c65b69bd1dbc930c6246877f6c21c81f2a60d55/src/go/importer/importer.go#L62
However, said issue is closed: golang/go#13847
Do you have any idea how to solve this? It looks to me like the Go compiler needs a fix. Not sure though.
The text was updated successfully, but these errors were encountered: