-
Notifications
You must be signed in to change notification settings - Fork 261
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
Cannot import package from a private repo inside a group #209
Comments
Could you post the output of the following two commands? GO111MODULES=on go get -v gitlab.private-repo.com/sre/scout/flowgraph-api.git
GO111MODULES=on go list -v gitlab.private-repo.com/sre/scout/flowgraph-api.git Being a private repository, I do not have a simple way to reproduce your configuration. |
@cosmos72 Terribly sorry for the inconvenience. Unfortunately, the repo contains proprietary code, so I can't make it public. Please find the requested output below. Note that there is no repo "https://gitlab.private-repo.com/sre/scout.git", P.s. do I understand correctly that these commands should be run from my terminal, and not from within jupyter?
|
Yes, you understood correctly. What about the plain |
@cosmos72 thanks for trying! Meanwhile:
|
@cosmos72 Hi, so I created a public repo with similar subgroup structure, by forking gonum. See it here: https://gitlab.com/testgroup212/subgroup/gonum However I'm having trouble figuring out how go handles module installation and what it expects. Maybe you have an example of a minimal repo I could fork there and try? Looks like
|
Sorry for spamming with multiple comments, but on an older note. Could you help me figure out where the following error message is generated:
Specifically |
Grabbing at straws here. Is there a way for gophernotes imports to be I need to use this
|
About your second question: gophernotes imports create a I am trying to imagine what such a customization API could look like, and the lesser evil seems to be something like "append the content of a known file - for example |
Yes, it seems that for my case some modification on I'm new to go, so not sure how often a custom I am currently porting my Python code to Go, and doing so without jupyter is quite painful :) p.s. as a very dirty hack, maybe I could try to overwrite the temporary |
The easiest workaround is to modify the code not to create the temporary To do that, you need to patch the function A slightly more detailed walkthrough is: # download gomacro and gophernotes in GOPATH
GO111MODULE=off go get -v github.com/cosmos72/gomacro
GO111MODULE=off go get -v github.com/gopherdata/gophernotes
# modify the function createPluginGoModFile() with your favourite editor:
cd "`go env GOPATH`/src/github.com/cosmos72/gomacro/base/genimport"
$EDITOR importer.go
# build and install gomacro and gophernotes
cd "`go env GOPATH`/src/github.com/cosmos72/gomacro"
GO111MODULE=off go install -v -i
cd "`go env GOPATH`/src/github.com/gopherdata/gophernotes"
GO111MODULE=off go install -v -i |
I am trying to import a module from a private repo.
import "gitlab.private-repo.com/sre/scout/flowgraph-api.git"
Notice that
plowgraph-api
lives insidescout
group insidesre
, which may complicate things.Go get from command line outside jupyter works:
However importing in jupyter, I get the following error
error loading package "gitlab.private-repo.com/sre/scout/flowgraph-api.git/api/client" metadata: packages.Load() could not find package "gitlab.private-repo.com/sre/scout/flowgraph-api.git/api/client"
I tried multiple formatts for import statements
Any help would be appreciated, thanks!
The text was updated successfully, but these errors were encountered: