mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-11 14:39:28 +02:00
feat: remove deprecated docker options (#2400)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
parent
a4a96eab54
commit
72b7f3b302
@ -48,13 +48,6 @@ func (Pipe) Default(ctx *context.Context) error {
|
||||
if docker.Dockerfile == "" {
|
||||
docker.Dockerfile = "Dockerfile"
|
||||
}
|
||||
if len(docker.Binaries) > 0 {
|
||||
deprecate.Notice(ctx, "docker.binaries")
|
||||
}
|
||||
if len(docker.Builds) > 0 {
|
||||
deprecate.Notice(ctx, "docker.builds")
|
||||
docker.IDs = append(docker.IDs, docker.Builds...)
|
||||
}
|
||||
if docker.Buildx {
|
||||
deprecate.Notice(ctx, "docker.use_buildx")
|
||||
if docker.Use == "" {
|
||||
|
@ -1106,9 +1106,7 @@ func TestDefault(t *testing.T) {
|
||||
Config: config.Project{
|
||||
Dockers: []config.Docker{
|
||||
{
|
||||
IDs: []string{"aa"},
|
||||
Builds: []string{"foo"},
|
||||
Binaries: []string{"aaa"},
|
||||
IDs: []string{"aa"},
|
||||
},
|
||||
{
|
||||
Use: useBuildx,
|
||||
@ -1127,7 +1125,7 @@ func TestDefault(t *testing.T) {
|
||||
docker := ctx.Config.Dockers[0]
|
||||
require.Equal(t, "linux", docker.Goos)
|
||||
require.Equal(t, "amd64", docker.Goarch)
|
||||
require.Equal(t, []string{"aa", "foo"}, docker.IDs)
|
||||
require.Equal(t, []string{"aa"}, docker.IDs)
|
||||
require.Equal(t, useDocker, docker.Use)
|
||||
docker = ctx.Config.Dockers[1]
|
||||
require.Equal(t, useBuildx, docker.Use)
|
||||
|
@ -541,8 +541,6 @@ type Checksum struct {
|
||||
|
||||
// Docker image config.
|
||||
type Docker struct {
|
||||
Binaries []string `yaml:",omitempty"` // deprecated: no need to use this anymore
|
||||
Builds []string `yaml:",omitempty"` // deprecated: use IDs instead
|
||||
IDs []string `yaml:"ids,omitempty"`
|
||||
Goos string `yaml:",omitempty"`
|
||||
Goarch string `yaml:",omitempty"`
|
||||
|
@ -89,9 +89,14 @@ ignore:
|
||||
|
||||
If you try to use new versions of GoReleaser with Go 1.15, it will warn about it until this deprecation warning expires.
|
||||
|
||||
|
||||
## Expired deprecation notices
|
||||
|
||||
The following options were deprecated in the past and were already removed.
|
||||
|
||||
### docker.builds
|
||||
|
||||
> since 2021-01-07 (v0.154.0)
|
||||
> since 2021-01-07 (v0.154.0), removed 2021-08-13 (v0.175.0)
|
||||
|
||||
`builds` is deprecated in favor of `ids`, since now it also allows to copy nfpm packages:
|
||||
|
||||
@ -113,7 +118,7 @@ Change this:
|
||||
|
||||
### docker.binaries
|
||||
|
||||
> since 2021-01-07 (v0.154.0)
|
||||
> since 2021-01-07 (v0.154.0), removed 2021-08-13 (v0.175.0)
|
||||
|
||||
`binaries` is deprecated and now does nothing.
|
||||
If you want to filter something out, use the `ids` property.
|
||||
@ -134,13 +139,9 @@ Change this:
|
||||
ids: ['foo']
|
||||
```
|
||||
|
||||
## Expired deprecation notices
|
||||
|
||||
The following options were deprecated in the past and were already removed.
|
||||
|
||||
### nfpms.files
|
||||
|
||||
> since 2020-12-21 (v0.149.0)
|
||||
> since 2020-12-21 (v0.149.0), removed 2021-07-26 (v0.172.0)
|
||||
|
||||
`files` is deprecated in favor of `contents` (check [this page](https://goreleaser.com/customization/nfpm/) for more details):
|
||||
|
||||
@ -165,7 +166,7 @@ Change this:
|
||||
|
||||
### nfpms.config_files
|
||||
|
||||
> since 2020-12-21 (v0.149.0)
|
||||
> since 2020-12-21 (v0.149.0), removed 2021-07-26 (v0.172.0)
|
||||
|
||||
`config_files` is deprecated in favor of `contents` (check [this page](https://goreleaser.com/customization/nfpm/) for more details):
|
||||
|
||||
@ -191,7 +192,7 @@ Change this:
|
||||
|
||||
### nfpms.symlinks
|
||||
|
||||
> since 2020-12-21 (v0.149.0)
|
||||
> since 2020-12-21 (v0.149.0), removed 2021-07-26 (v0.172.0)
|
||||
|
||||
`symlinks` is deprecated in favor of `contents` (check [this page](https://goreleaser.com/customization/nfpm/) for more details):
|
||||
|
||||
@ -217,7 +218,7 @@ Change this:
|
||||
|
||||
### nfpms.rpm.ghost_files
|
||||
|
||||
> since 2020-12-21 (v0.149.0)
|
||||
> since 2020-12-21 (v0.149.0), removed 2021-07-26 (v0.172.0)
|
||||
|
||||
`rpm.ghost_files` is deprecated in favor of `contents` (check [this page](https://goreleaser.com/customization/nfpm/) for more details):
|
||||
|
||||
@ -244,7 +245,7 @@ Change this:
|
||||
|
||||
### nfpms.rpm.config_noreplace_files
|
||||
|
||||
> since 2020-12-21 (v0.149.0)
|
||||
> since 2020-12-21 (v0.149.0), removed 2021-07-26 (v0.172.0)
|
||||
|
||||
`rpm.config_noreplace_files` is deprecated in favor of `contents` (check [this page](https://goreleaser.com/customization/nfpm/) for more details):
|
||||
|
||||
@ -273,7 +274,7 @@ Change this:
|
||||
|
||||
### nfpms.deb.version_metadata
|
||||
|
||||
> since 2020-12-21 (v0.149.0)
|
||||
> since 2020-12-21 (v0.149.0), removed 2021-07-26 (v0.172.0)
|
||||
|
||||
`deb.version_metadata` is deprecated in favor of `version_metadata` (check [this page](https://goreleaser.com/customization/nfpm/) for more details):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user