Is there any reason the module stuff has to go here? It breaks a lot of existing tools, and I can't determine the benefit. Why not just put it in $GOPATH/mod? This avoids having to update the entire world of tooling out there.
> Also, tools should in general not be walking over all of GOPATH/src
A common command, go build .../cmd/unused
I’ve been telling people who are learning about Go Modules that it’s okay to nuke the mod directory whenever things get weird (mostly because are playing around with Athens and other stuff and corrupting it).
Are there situations where deleting the mod directory would have a bad effect other than causing the module cache to be repopulated?
I’ve been telling people who are learning about Go Modules that it’s okay to nuke the mod directory whenever things get weird (mostly because are playing around with Athens and other stuff and corrupting it).
Are there situations where deleting the mod directory would have a bad effect other than causing the module cache to be repopulated?
On Thu, Jul 26, 2018 at 10:12 AM, Carolyn Van Slyck <Carolyn....@microsoft.com> wrote:I’ve been telling people who are learning about Go Modules that it’s okay to nuke the mod directory whenever things get weird (mostly because are playing around with Athens and other stuff and corrupting it).
Are there situations where deleting the mod directory would have a bad effect other than causing the module cache to be repopulated?
If the bits you need are still available for re-downloading from the network, there's no bad effect. That's just a big if.Russ
--
You received this message because you are subscribed to a topic in the Google Groups "golang-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-dev/RjSj4bGSmsw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This is why I’m looking forward to the Athens project which implements a proxy and registry for go! It’s not quite ready to try out yet, but once it is I can post back on this list with info on how to kick the tires.
From: Vladimir Varankin <vlad...@varank.in>
Sent: July 26, 2018 3:03 PM
To: r...@golang.org
Cc: Carolyn Van Slyck <Carolyn....@microsoft.com>; golan...@googlegroups.com
Subject: Re: [golang-dev] $GOPATH/src/mod
I see your point about the need for the source code to be downloaded to be able to run "go build" / "go test". But pointing specifically on the fact that the origin of the dependencies might not be available after the cache was flushed, is a bit strange (I'm really sorry in if I misunderstood something, and sorry in advance if this goes outside of the original question).
If the goal is to remove $GOPATH/pkg then isn't moving this under $GOPATH/pkg/mod creating more work for us in the future when GOPATH will be removed/not mandatory anymore? I know we have now a default path for it but will this be there in the future? Shouldn't we move this under $HOME/.go/mod or something like that so that other tools can also use this in the future as well rather than inventing their own spaces?
--
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+...@googlegroups.com.
On Thu, Jul 26, 2018 at 10:12 AM, Carolyn Van Slyck <Carolyn....@microsoft.com> wrote:I’ve been telling people who are learning about Go Modules that it’s okay to nuke the mod directory whenever things get weird (mostly because are playing around with Athens and other stuff and corrupting it).
Are there situations where deleting the mod directory would have a bad effect other than causing the module cache to be repopulated?
If the bits you need are still available for re-downloading from the network, there's no bad effect. That's just a big if.
If the goal is to remove $GOPATH/pkg then isn't moving this under $GOPATH/pkg/mod creating more work for us in the future when GOPATH will be removed/not mandatory anymore? I know we have now a default path for it but will this be there in the future? Shouldn't we move this under $HOME/.go/mod or something like that so that other tools can also use this in the future as well rather than inventing their own spaces?