In general: You cannot use a Github Fork of a Go module. A fork creates a new package/module with different package/module names and in general (trivial cases _do_ work) you cannot even build it.
What you should do: - Fork the repo but do not work on your fork! - Clone the repo you want to work with - Make changes to the clone, build and test (this works as it is not a fork) - Add your fork as a new remote and push to your fork - Create a pull request from your fork to the original repo You need the fork for the PR but you do not do actual work there. That your fork is private does not make it better (but not worse either). (In your case you have to get your work from the fork into the clone, but this should be simple). V. On Tuesday, 24 September 2019 18:11:53 UTC+2, eric...@gmail.com wrote: > > Hi! This is perhaps more a question about git than Go but must have > something to do with go get, too. I tried to fork gotk3 from github on the > web page (using Fork button), because I need to merge some important 3rd > party pull requests and the maintainer is no longer active. > > However, after creating a fresh fork and without making any changes, if I > add the repo into an import statement, go get -u fails with the message: > cannot load github.com/rasteric/gotk3/gtk: zip: not a valid zip file > > My fork is at github.com/rasteric/gotk3, the project using it is private. > > How is that possible? Shouldn't a fresh fork work exactly like the > original? Does anyone have an idea what's going wrong? > > If I cannot merge those pull requests (for copy&paste in a TextView), I > can basically scrap the results of half a year of work and say good-bye to > GTK. It is very frustrating, so I appreciate very much any help. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/01cad161-8bfd-4d7c-9720-6247d3db6c2b%40googlegroups.com.