Closed r10r closed 3 years ago
Does that work properly with pre-gomod setups? I thought we had to use gopkg.in because we couldn't have Go import from a branch prior to go modules becoming a thing.
Changing the README shouldn't affect pre-gomod setups unless someone decides to update the import itself.
But I think new projects should definitely use github.com/lxc/go-lxc
as import.
I noticed that you have already changed the import path of the examples in https://github.com/lxc/go-lxc/commit/e866d78e65486b1ef02445169d9ce6391dccf13a
What about adding a notice then ? e.g
Use gopkg.in/lxc/go-lxc.v2 instead if you do not use go modules.`
Oh sorry, wasn't very awake this morning. Yeah, README is fine too update, there are very few people who won't be using go mod and those will know what to do anyway.
Well, I'll send a pull request then.
Thanks for merging!
Hi there,
I noticed that the import path
gopkg.in/lxc/go-lxc.v2
(proposed by the readme) breaks module replacement.I used the import path
gopkg.in/lxc/go-lxc.v2
in lxcri. E.g to test lxcri against a development go-lxc remote branch I change the import path in go.mod:When refreshing go.mod I get the following error:
After changing the import path to
github.com/lxc/go-lxc
the following module replacement works fine.What about changing all
gopkg.in/go-lxc.v2
references in README.md togithub.com/go-lxc
?