forked from TrueCloudLab/distribution
bump up golang v1.17
Signed-off-by: Wang Yan <wangyan@vmware.com>
(cherry picked from commit 3f4c558dac
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
092a2197ff
commit
2392893bcf
11 changed files with 12 additions and 4 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -25,13 +25,13 @@ jobs:
|
|||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.16.*
|
||||
go-version: 1.17.*
|
||||
|
||||
- name: Dependencies
|
||||
run: |
|
||||
sudo apt-get -q update
|
||||
sudo -E apt-get -yq --no-install-suggests --no-install-recommends install python2-minimal
|
||||
cd /tmp && go get -u github.com/vbatts/git-validation
|
||||
cd /tmp && go install github.com/vbatts/git-validation@latest
|
||||
|
||||
- name: Build
|
||||
working-directory: ./src/github.com/docker/distribution
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# syntax=docker/dockerfile:1.3
|
||||
|
||||
ARG GO_VERSION=1.16.15
|
||||
ARG GO_VERSION=1.17
|
||||
ARG GORELEASER_XX_VERSION=1.2.5
|
||||
|
||||
FROM --platform=$BUILDPLATFORM crazymax/goreleaser-xx:${GORELEASER_XX_VERSION} AS goreleaser-xx
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
//go:build go1.4
|
||||
// +build go1.4
|
||||
|
||||
package handlers
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
//go:build !go1.4
|
||||
// +build !go1.4
|
||||
|
||||
package handlers
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
//go:build noresumabledigest
|
||||
// +build noresumabledigest
|
||||
|
||||
package storage
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
//go:build !noresumabledigest
|
||||
// +build !noresumabledigest
|
||||
|
||||
package storage
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
// Note that the contents of incomplete uploads are not accessible even though
|
||||
// Stat returns their length
|
||||
//
|
||||
//go:build include_gcs
|
||||
// +build include_gcs
|
||||
|
||||
package gcs
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
//go:build include_gcs
|
||||
// +build include_gcs
|
||||
|
||||
package gcs
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
// Because OSS is a key, value store the Stat call does not support last modification
|
||||
// time for directories (directories are an abstraction for key, value stores)
|
||||
//
|
||||
//go:build include_oss
|
||||
// +build include_oss
|
||||
|
||||
package oss
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
//go:build include_oss
|
||||
// +build include_oss
|
||||
|
||||
package oss
|
||||
|
|
|
@ -4,7 +4,7 @@ set -eu -o pipefail
|
|||
|
||||
if ! command -v git-validation; then
|
||||
>&2 echo "ERROR: git-validation not found. Install with:"
|
||||
>&2 echo " go get -u github.com/vbatts/git-validation"
|
||||
>&2 echo " go install github.com/vbatts/git-validation@latest"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue