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:
parent
02aefed48a
commit
37fcba1d7a
2
Makefile
2
Makefile
@ -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)
|
||||
|
@ -1,5 +1,5 @@
|
||||
//go:build !nolegacy
|
||||
// +build !nolegacy
|
||||
//go:build legacy
|
||||
// +build legacy
|
||||
|
||||
package retryable
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -1,5 +1,5 @@
|
||||
//go:build !nolegacy
|
||||
// +build !nolegacy
|
||||
//go:build legacy
|
||||
// +build legacy
|
||||
|
||||
// Legacy package, this has been moved to the config package
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user