1
0
mirror of https://github.com/regclient/regclient.git synced 2025-04-17 11:37:11 +03:00

Breaking: Disable legacy packages by default.

Legacy packages may still be used with "-tags legacy" added to the build.
They may be permanently removed in a future release.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
This commit is contained in:
Brandon Mitchell 2024-11-12 09:19:10 -05:00
parent 02aefed48a
commit 37fcba1d7a
No known key found for this signature in database
GPG Key ID: 6E0FF28C767A8BEE
16 changed files with 31 additions and 31 deletions

View File

@ -20,7 +20,7 @@ VCS_VERSION?=$(shell vcs_describe="$$(git describe --all)"; \
echo "$${vcs_version}" | sed -r 's#/+#-#g')
VCS_TAG?=$(shell git describe --tags --abbrev=0 2>/dev/null || true)
LD_FLAGS?=-s -w -extldflags -static -buildid= -X \"github.com/regclient/regclient/internal/version.vcsTag=$(VCS_TAG)\"
GO_BUILD_FLAGS?=-trimpath -ldflags "$(LD_FLAGS)" -tags nolegacy
GO_BUILD_FLAGS?=-trimpath -ldflags "$(LD_FLAGS)"
DOCKERFILE_EXT?=$(shell if docker build --help 2>/dev/null | grep -q -- '--progress'; then echo ".buildkit"; fi)
DOCKER_ARGS?=--build-arg "VCS_REF=$(VCS_REF)" --build-arg "VCS_VERSION=$(VCS_VERSION)"
GOPATH?=$(shell go env GOPATH)

View File

@ -1,5 +1,5 @@
//go:build !nolegacy
// +build !nolegacy
//go:build legacy
// +build legacy
package retryable

View File

@ -1,5 +1,5 @@
//go:build !nolegacy
// +build !nolegacy
//go:build legacy
// +build legacy
// Package retryable is a legacy package, functionality has been moved to reghttp
package retryable

View File

@ -1,5 +1,5 @@
//go:build !nolegacy
// +build !nolegacy
//go:build legacy
// +build legacy
// Package blob is a legacy package, this has been moved to the types/blob package
package blob

View File

@ -1,5 +1,5 @@
//go:build !nolegacy
// +build !nolegacy
//go:build legacy
// +build legacy
// Legacy package, this has been moved to the config package

View File

@ -1,5 +1,5 @@
//go:build !nolegacy
// +build !nolegacy
//go:build legacy
// +build legacy
// Package config is a legacy package, this has been moved to the config package
package config

View File

@ -1,5 +1,5 @@
//go:build !nolegacy
// +build !nolegacy
//go:build legacy
// +build legacy
// Legacy package, this has been moved to the types/error.go package

View File

@ -1,5 +1,5 @@
//go:build !nolegacy
// +build !nolegacy
//go:build legacy
// +build legacy
// Package manifest is a legacy package, this has been moved to the types/manifest package
package manifest

View File

@ -1,5 +1,5 @@
//go:build !nolegacy
// +build !nolegacy
//go:build legacy
// +build legacy
// Legacy package, this has been moved to the top level types/mediatype.go package

View File

@ -1,5 +1,5 @@
//go:build !nolegacy
// +build !nolegacy
//go:build legacy
// +build legacy
//lint:file-ignore SA1019 Ignore deprecations since this entire package is deprecated

View File

@ -1,5 +1,5 @@
//go:build !nolegacy
// +build !nolegacy
//go:build legacy
// +build legacy
// Legacy package, this has been moved to the pkg/template package

View File

@ -1,5 +1,5 @@
//go:build !nolegacy
// +build !nolegacy
//go:build legacy
// +build legacy
// Legacy package, this has been moved to top level types package

View File

@ -1,5 +1,5 @@
//go:build !nolegacy
// +build !nolegacy
//go:build legacy
// +build legacy
// Legacy package, this has been moved to top level types package

View File

@ -1,5 +1,5 @@
//go:build !nolegacy
// +build !nolegacy
//go:build legacy
// +build legacy
// Legacy package, this has been moved to top level types package

View File

@ -1,5 +1,5 @@
//go:build !nolegacy
// +build !nolegacy
//go:build legacy
// +build legacy
// Legacy package, this has been moved to the types/ref package

View File

@ -1,5 +1,5 @@
//go:build !nolegacy
// +build !nolegacy
//go:build legacy
// +build legacy
// Package types is a legacy package, using the top level types package is recommended
package types