On Tuesday, March 5, 2024 at 9:29:58 AM UTC-6 Bryan C. Mills wrote:
The simplest way to download Go dependencies for code review and debugging
is to run `go mod vendor` in your module or (newly added) `go work vendor`
in your workspace. Also note that `go mod download -json` and `go list -m
On Thu, Mar 7, 2024 at 4:28 AM Jan Mercl <0xj...@gmail.com> wrote:
> jnml@e5-1650:~/tmp/get$ GOPATH=$(pwd) GO111MODULE=auto go get -v
> modernc.org/sqlite
>
> jnml@e5-1650:~/tmp/get$ ls pkg/mod/
> cache github.com golang.org modernc.org
>
Interesting, it does indeed pull the pkg/mod, but
On Mon, Mar 11, 2024 at 10:05 AM roger peppe wrote:
> It's not quite what you're after, but FWIW the gohack command (
> github.com/rogpeppe/gohack) knows enough to download arbitrary Go modules
> including the VCS checkout. You might find it useful, I guess.
>
Okay, yes, I'm only 5 years late
On Sunday, March 3, 2024 at 5:46:13 PM UTC-6 Christian Stewart wrote:
Firstly, you can reference the other repos and use the latest "master"
version by writing "master" where the v verson is in the file,
then use "go mod tidy"
Second, you can use "go work" to create a workspace with
On Tuesday, March 5, 2024 at 9:29:58 AM UTC-6 Bryan C. Mills wrote:
Part of the intent with modules is that you do not need to do a full `git
clone` of each dependency — you should really only need to do that if you
need to author upstream changes yourself,
Yes, I'm authoring upstream
On Monday, March 4, 2024 at 8:44:14 AM UTC-6 Bryan C. Mills wrote:
Per https://go.dev/doc/go1.22#go-command:
> go get is no longer supported outside of a module in the legacy GOPATH mode
(that is, with GO111MODULE=off). Other build commands, such as go build and go
test, will continue to work
Yes, I do understand the go-source/go-import part, but am I missing
something? I don't understand how you would find the go-source other than
parsing the HTML
I mean 'go get' used to do that for me, do I now have to write a program to
do that? I don't understand why that is some bad idea.
"You can build large projects with many repos using Go modules. "
Also, I forgot to add, lots of my repos are binaries, so module things
don't apply. How do I tell someone to download go.wit.com/apps/helloworld?
I can't now with a single GO111MODULE=off go get. Can we have 'go download'
or can
I don't think I understand you.
How can I download go.uber.org/zap sources? I need to be able to do it
using the "go" binary. I was able to do it before, now I can't. Is there
some way to do
go download go.uber.org/zap and have it git clone?
I don't know how to resolve the git clone path.
I guess this boils down to:
GO111MODULE=off go get go.uber.org/zap
used to git clone into ~/go/src/go.uber.org/zap
How am I supposed to do that now? I assume I'm not expected to parse the
HTML for the go-import and go-source lines!
jcarr
--
You received this message because you are
Has this been deprecated or maybe it is broken in debian sid, but:
bash$ GO111MODULE=off go get -v go.wit.com/apps/test
go: modules disabled by GO111MODULE=off; see 'go help modules'
basj$ go version
go version go1.22.0 linux/amd64
this doesn't work anymore. Also, 'go help modules' is less than
11 matches
Mail list logo