From 1054d157bf27ecc9e83d682077b3b2fae44676b3 Mon Sep 17 00:00:00 2001 From: Milos Gajdos Date: Sun, 10 Dec 2023 09:09:52 +0000 Subject: [PATCH] update: remove gcs storage driver build tags GCS storage driver used to be conditionally built due to its being outdated and basically unmaintained. Recently the driver has gone through a rework and updates. Let's remove the build tag so we have less headaches dealing with it and try keeping it up to date. Signed-off-by: Milos Gajdos --- BUILDING.md | 2 -- Dockerfile | 2 +- dockerfiles/lint.Dockerfile | 2 +- registry/storage/driver/gcs/doc.go | 3 +-- registry/storage/driver/gcs/gcs.go | 3 --- registry/storage/driver/gcs/gcs_test.go | 3 --- 6 files changed, 3 insertions(+), 12 deletions(-) diff --git a/BUILDING.md b/BUILDING.md index 8e3cf3d40..7ee447324 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -100,8 +100,6 @@ the environment variable `BUILDTAGS`.
noresumabledigest
Compiles without resumable digest support
-
include_gcs
-
Adds support for Google Cloud Storage
### Local cloud storage environment diff --git a/Dockerfile b/Dockerfile index 05ccb16e7..7c88b1ce7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,7 @@ RUN --mount=target=. \ FROM base AS build ARG TARGETPLATFORM ARG LDFLAGS="-s -w" -ARG BUILDTAGS="include_gcs" +ARG BUILDTAGS="" RUN --mount=type=bind,target=/src \ --mount=type=cache,target=/root/.cache/go-build \ --mount=target=/go/pkg/mod,type=cache \ diff --git a/dockerfiles/lint.Dockerfile b/dockerfiles/lint.Dockerfile index d4629a3df..b059e2978 100644 --- a/dockerfiles/lint.Dockerfile +++ b/dockerfiles/lint.Dockerfile @@ -3,7 +3,7 @@ ARG GO_VERSION=1.20.12 ARG ALPINE_VERSION=3.18 ARG GOLANGCI_LINT_VERSION=v1.55.2 -ARG BUILDTAGS="include_gcs" +ARG BUILDTAGS="" FROM golangci/golangci-lint:${GOLANGCI_LINT_VERSION}-alpine AS golangci-lint diff --git a/registry/storage/driver/gcs/doc.go b/registry/storage/driver/gcs/doc.go index 0f23ea785..30df05895 100644 --- a/registry/storage/driver/gcs/doc.go +++ b/registry/storage/driver/gcs/doc.go @@ -1,3 +1,2 @@ -// Package gcs implements the Google Cloud Storage driver backend. Support can be -// enabled by including the "include_gcs" build tag. +// Package gcs implements the Google Cloud Storage driver backend. package gcs diff --git a/registry/storage/driver/gcs/gcs.go b/registry/storage/driver/gcs/gcs.go index cab971652..beb9261ed 100644 --- a/registry/storage/driver/gcs/gcs.go +++ b/registry/storage/driver/gcs/gcs.go @@ -1,6 +1,3 @@ -//go:build include_gcs -// +build include_gcs - // Package gcs provides a storagedriver.StorageDriver implementation to // store blobs in Google cloud storage. // diff --git a/registry/storage/driver/gcs/gcs_test.go b/registry/storage/driver/gcs/gcs_test.go index 67176273e..b0d35c176 100644 --- a/registry/storage/driver/gcs/gcs_test.go +++ b/registry/storage/driver/gcs/gcs_test.go @@ -1,6 +1,3 @@ -//go:build include_gcs -// +build include_gcs - package gcs import (