Upgrades to the Go 1.22 toolchain. Upgrades golangci-lint to 1.61.0 and disables some new linters.
---------
Co-authored-by: Nicholas Wiersma <nick@wiersma.co.za>
The ARG before the FROM call in multistage builds is dropped with the
previous container. We need to define it globally
Signed-off-by: Chris M <millscj01@gmail.com>
* Adding build arg for the alpine version the docker image is based on
* Actually using the arg
* Using Alpine 3.11.5
Co-authored-by: Ted Wexler <ted@stuckinacan.com>
* Update .drone.yml for Go 1.14
* Update appveyor.yml for Go 1.14
* Update Dockerfile.test for Go 1.14
* Update Dockerfile for Go 1.14
* Update scripts/build-image/Dockerfile
For repositories that store some files in git-lfs, the checksum will
differ for clients with and without git-lfs. Clients without git-lfs
will use the git-lfs pointer [0] for calculation, clients with will use
the real files.
This adds git-lfs to the container to match expected behaviour and
resolve checksum mismatches in these cases.
[0] https://github.com/git-lfs/git-lfs/blob/master/docs/spec.md
* Add GOLANG_VERSION arg to proxy-docker
* Set default GOLANG_VERSION to 1.13 in Makefile
* Add note in proxy Dockerfile re: GOLANG_VERSION
* Add GOLANG_VERSION to docker-compose dev target
* removed -mod=vendor from Makefile
* removed -mod=vendor from docs
* Set GOPROXY=https://proxy.golang.org in docs and Makefile
* remove -mod=vendor from Dockerfile; add GOPROXY=https://proxy.golang.org
* poc
* finish JSON, remove uneeded methods, update docker file, finish script details
* build.Details didn't need to be exported
* typo
* somehow missed this
* should default to false
* Fix some things
remove commit SHA as build script will now create a hybrid for version
as in the push-docker-images.sh script, code shamelessly stolen.
change JSON function to Data and return a struct, the caller can do what
they like with that data, i.e. marshall JSON for a response body.
* add struct tags
* use build script in docker image
* newline in build.sh
* use previously generated version for binary build
* Working docker args
removed script build.sh, was not really needed.
date is generated automatically during docker build process.
VERSION will be set to 'Not Specified', or the version set during
our CI docker build/push step. A user can set their own version during
build using ldflags.
* remove old comment re: script
* Yikes
Almost forgot to remove my testing junk
* GitHub on my phone is hard
* changed base to use 1.11-alpine and addded GO111MODULE=on to environment
* change go build to be one line with modules on
* add vcs systems that were in original stretch image
* created multistage build with copy from and path environment update
* added env GO111MODULE=on
* add and run create default, prereq bash installed, moved go binary, created GOROOT path
* update to preferred docker entry point and shorter config path
* added fossil and info to links for compare of VCS
* switch proxy to config file
pull in single flight changes
* changes for single-flight
* intermediate stage. All tests passing. pkg still has env refs
* remove all env references
* delete config/env entirely
* fix failing tests
* create the config.toml file as part of dev setup
* create config file only if it doesn't exist
* update Dockerfiles to use config file
* move composing elements to the top
* verbose parameter naming
* newline
* add flag for config file path
* update docs with config file flag
* remove unnecessary nil check
* use filepath.join
* rename redis port to address
* fix path.join
* fix issues after merge
* add vendor dir
* remove vendor directory
athens will be using Go modules for dependency management
* remove Gopkg.* files. athens will be using Go modules for dependency management
* add note about Go version required for developing on Athens
To use Go modules for dep management, you require atleast Go version 1.11
* update documentation regarding supported version of Go
* dont install dep
* re-add vendor directory
go mod vendor
* use vendored directory to carry out Go commands
* remove the use of -mod=vendor
this is necessary because;
1. we are running ci in a travis with a matrix of GO111MODULE=on & GO111MODULE=auto
and -mod=vendor is not available as an option in GO111MODULE=auto(inside GOPATH)
* rm vendor
* run go mod tidy
this is beacuse the master branch had changes to Gopkg.lock
* match gopkg.in/go-playground/validator.v9 version
with master branhc
* go mod tidy
* go mod vendor
so as to vendor the new changes that were added in master
* set GO111MODULE=on globally in ci
* build with -mod=vendor when building docker image
* use -mod=vendor to avoid getting deps from vcs in ci
* use -mod=vendor in .drone.yml
* use go1.11 in drone.yml
* update travis to Go 1.11
* update check_deps ci script
ci for checking dependencies should now check Go module files and use go mod verify
* remove uneeded comment
* set GO111MODULE
* debug GO111MODULE propagation
* rm dep installation
* debug GO111MODULE propagation
* rm debug statements
* use Go point releases in ci
* remove references to Go1.11 RCs
* run ci with GO111MODULE auto and also on
* use matrix