Is there a flag for go get or go install to force those to use the cache, even if the cache is very old / ancient? We are using docker images / multi-stage build to cache deps, and those original files might be weeks or months old.
Force `go get` and `go install` to use cache even if it's ancient
1.9k Views Asked by AudioBubble At
1
There are 1 best solutions below
Related Questions in GO
- How do I get all the attributes of an XML element using Go?
- Type cast custom types to base types
- Why are Revel optional func parameters in controller not working? CRUD code redundancy
- Streaming commands output progress
- single ampersand between 2 expressions
- golang goroutine use SSHAgent auth doesn't work well and throw some unexpect panic
- How do I do a literal *int64 in Go?
- Emulating `docker run` using the golang docker API
- How to print contents of channel without changing it
- Golang time zone parsing not returning the correct zone on ubuntu server
- Is os.File's Write() threadsafe?
- How to get the pointer of return value from function call?
- How do I represent an Optional String in Go?
- Fibonacci in Go using channels
- Boltdb-key-Value Data Store purely in Go
Related Questions in GO-GET
- go-get cannot download from github
- AWS codePipeline: go get: unknown revision v1.0.0
- How to use the go get command to download private projects from the company's gitlab repository
- How to configure the go get command to use http protocol instead of https protocol
- Git config with condifional does not work with url rewrites
- go get doesn't work with .gitconfig that references a custom gitconfig
- main.go not able to find the package
- How to go get github.com/fxamacker/cbor/v2 with Go 1.10?
- How to prevent go get from updating go.mod file
- go get a private repo from codecommit
- go get can't work with a non-routeable IP address
- Go get private bitbucket repo giving 403 forbidden
- Can Golang modules be used on a branch other than master?
- go get: Git settings are ignored
- Why does go get fail with "invalid version: unknown revision"?
Related Questions in GOINSTALL
- $GOPATH is set but go install does not work
- Update go using go install
- Go install. Execute custom action
- go install on windows: "Access is Denied"
- unable to run goinstall
- how to `go install` from gitea
- Compiling CGO files in Golang package
- Import web.go error after using goinstall
- web.go install error
- go get installation from a local fork
- Go install error: ambiguous import: found github.com/hashicorp/consul/api in multiple modules
- Golang equivalent of npm install -g
- Why Go Programs need runtime support
- Including pkg in .dockerignore file
- Obtaining minimum required go version of remote go module
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
go.modmay record concrete versions or commits you depend on. If you need old versions of your deps, state them explicitly in yourgo.modand you get reproducible builds even if your dependencies evolve.Use
go get foo@123456if you need the123456commit of yourfoodependency.Use
go get [email protected]if you need thev0.1.2version of your dependency. These will get recorded ingo.mod, and no matter where / when you build your module, it will always use these versions.For details, see Go Wiki: Modules: How to Upgrade and Downgrade Dependencies.