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:
Wang Yan 2021-07-06 11:43:13 +08:00 committed by Sebastiaan van Stijn
parent 092a2197ff
commit 2392893bcf
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
11 changed files with 12 additions and 4 deletions

View file

@ -25,13 +25,13 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: 1.16.* go-version: 1.17.*
- name: Dependencies - name: Dependencies
run: | run: |
sudo apt-get -q update sudo apt-get -q update
sudo -E apt-get -yq --no-install-suggests --no-install-recommends install python2-minimal 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 - name: Build
working-directory: ./src/github.com/docker/distribution working-directory: ./src/github.com/docker/distribution

View file

@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1.3 # syntax=docker/dockerfile:1.3
ARG GO_VERSION=1.16.15 ARG GO_VERSION=1.17
ARG GORELEASER_XX_VERSION=1.2.5 ARG GORELEASER_XX_VERSION=1.2.5
FROM --platform=$BUILDPLATFORM crazymax/goreleaser-xx:${GORELEASER_XX_VERSION} AS goreleaser-xx FROM --platform=$BUILDPLATFORM crazymax/goreleaser-xx:${GORELEASER_XX_VERSION} AS goreleaser-xx

View file

@ -1,3 +1,4 @@
//go:build go1.4
// +build go1.4 // +build go1.4
package handlers package handlers

View file

@ -1,3 +1,4 @@
//go:build !go1.4
// +build !go1.4 // +build !go1.4
package handlers package handlers

View file

@ -1,3 +1,4 @@
//go:build noresumabledigest
// +build noresumabledigest // +build noresumabledigest
package storage package storage

View file

@ -1,3 +1,4 @@
//go:build !noresumabledigest
// +build !noresumabledigest // +build !noresumabledigest
package storage package storage

View file

@ -10,6 +10,7 @@
// Note that the contents of incomplete uploads are not accessible even though // Note that the contents of incomplete uploads are not accessible even though
// Stat returns their length // Stat returns their length
// //
//go:build include_gcs
// +build include_gcs // +build include_gcs
package gcs package gcs

View file

@ -1,3 +1,4 @@
//go:build include_gcs
// +build include_gcs // +build include_gcs
package gcs package gcs

View file

@ -7,6 +7,7 @@
// Because OSS is a key, value store the Stat call does not support last modification // 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) // time for directories (directories are an abstraction for key, value stores)
// //
//go:build include_oss
// +build include_oss // +build include_oss
package oss package oss

View file

@ -1,3 +1,4 @@
//go:build include_oss
// +build include_oss // +build include_oss
package oss package oss

View file

@ -4,7 +4,7 @@ set -eu -o pipefail
if ! command -v git-validation; then if ! command -v git-validation; then
>&2 echo "ERROR: git-validation not found. Install with:" >&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 exit 1
fi fi