You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-07-11 01:20:21 +02:00
docs: deprecations
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
@ -2,19 +2,20 @@
|
|||||||
title: Deprecation notices
|
title: Deprecation notices
|
||||||
---
|
---
|
||||||
|
|
||||||
This page will be used to list deprecation notices across GoReleaser.
|
This page is used to list deprecation notices across GoReleaser.
|
||||||
|
|
||||||
Deprecate code will be removed after ~6 months from the time it was deprecated.
|
Deprecated options will be removed after ~6 months from the time they were
|
||||||
|
deprecated.
|
||||||
|
|
||||||
You can check your use of deprecated configurations by running:
|
You can check your use of deprecated configurations by running:
|
||||||
|
|
||||||
```sh
|
```console
|
||||||
$ goreleaser check
|
$ goreleaser check
|
||||||
```
|
```
|
||||||
|
|
||||||
## Active deprecation notices
|
## Active deprecation notices
|
||||||
|
|
||||||
None.
|
None at this time.
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|
||||||
@ -26,21 +27,22 @@ Template for new deprecations:
|
|||||||
|
|
||||||
Description.
|
Description.
|
||||||
|
|
||||||
Change this:
|
=== "Before"
|
||||||
|
|
||||||
``` yaml
|
``` yaml
|
||||||
|
foo: bar
|
||||||
```
|
```
|
||||||
|
|
||||||
to this:
|
=== "After"
|
||||||
|
|
||||||
``` yaml
|
``` yaml
|
||||||
|
foo: bar
|
||||||
```
|
```
|
||||||
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
## Expired deprecation notices
|
## Expired deprecation notices
|
||||||
|
|
||||||
The following options were deprecated for ~6 months and are now fully removed.
|
The following options were deprecated in the past and were already removed.
|
||||||
|
|
||||||
### puts
|
### puts
|
||||||
|
|
||||||
@ -49,15 +51,14 @@ The following options were deprecated for ~6 months and are now fully removed.
|
|||||||
The HTTP upload support was extended to also accept `POST` as a method,
|
The HTTP upload support was extended to also accept `POST` as a method,
|
||||||
so the name `puts` kind of lost its meaning.
|
so the name `puts` kind of lost its meaning.
|
||||||
|
|
||||||
Change this:
|
=== "Before"
|
||||||
|
|
||||||
``` yaml
|
``` yaml
|
||||||
puts:
|
puts:
|
||||||
- ...
|
- ...
|
||||||
```
|
```
|
||||||
|
|
||||||
to this:
|
=== "After"
|
||||||
|
|
||||||
``` yaml
|
``` yaml
|
||||||
uploads:
|
uploads:
|
||||||
- ...
|
- ...
|
||||||
@ -73,15 +74,14 @@ Also note that secrets environment variable name prefixes have changed from
|
|||||||
The `name_template` field was deprecated in favor of a more clear one,
|
The `name_template` field was deprecated in favor of a more clear one,
|
||||||
`file_name_template`.
|
`file_name_template`.
|
||||||
|
|
||||||
Change this:
|
=== "Before"
|
||||||
|
|
||||||
``` yaml
|
``` yaml
|
||||||
nfpms:
|
nfpms:
|
||||||
- name_template: foo
|
- name_template: foo
|
||||||
```
|
```
|
||||||
|
|
||||||
to this:
|
|
||||||
|
|
||||||
|
=== "After"
|
||||||
``` yaml
|
``` yaml
|
||||||
nfpms:
|
nfpms:
|
||||||
- file_name_template: foo
|
- file_name_template: foo
|
||||||
@ -95,15 +95,13 @@ Blob was deprecated in favor of its plural form.
|
|||||||
It was already accepting multiple inputs, but its pluralized now so its more
|
It was already accepting multiple inputs, but its pluralized now so its more
|
||||||
clear.
|
clear.
|
||||||
|
|
||||||
Change this:
|
=== "Before"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
blob:
|
blob:
|
||||||
# etc
|
# etc
|
||||||
```
|
```
|
||||||
|
|
||||||
to this:
|
=== "After"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
blobs:
|
blobs:
|
||||||
# etc
|
# etc
|
||||||
@ -115,15 +113,13 @@ blobs:
|
|||||||
|
|
||||||
Sign was deprecated in favor of its plural form.
|
Sign was deprecated in favor of its plural form.
|
||||||
|
|
||||||
Change this:
|
=== "Before"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
sign:
|
sign:
|
||||||
# etc
|
# etc
|
||||||
```
|
```
|
||||||
|
|
||||||
to this:
|
=== "After"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
signs:
|
signs:
|
||||||
-
|
-
|
||||||
@ -138,13 +134,13 @@ Brew was deprecated in favor of its plural form.
|
|||||||
|
|
||||||
Change this:
|
Change this:
|
||||||
|
|
||||||
|
=== "Before"
|
||||||
```yaml
|
```yaml
|
||||||
brew:
|
brew:
|
||||||
# etc
|
# etc
|
||||||
```
|
```
|
||||||
|
|
||||||
to this:
|
=== "After"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
brews:
|
brews:
|
||||||
-
|
-
|
||||||
@ -158,16 +154,14 @@ brews:
|
|||||||
S3 was deprecated in favor of the new `blob`, which supports S3, Azure Blob and
|
S3 was deprecated in favor of the new `blob`, which supports S3, Azure Blob and
|
||||||
GCS.
|
GCS.
|
||||||
|
|
||||||
Change this:
|
=== "Before"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
s3:
|
s3:
|
||||||
-
|
-
|
||||||
# etc
|
# etc
|
||||||
```
|
```
|
||||||
|
|
||||||
to this:
|
=== "After"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
blobs:
|
blobs:
|
||||||
-
|
-
|
||||||
@ -183,15 +177,13 @@ ACLs should be set on the bucket, the `acl` option does not exist anymore.
|
|||||||
|
|
||||||
We now allow multiple archives, so the `archive` statement will be removed.
|
We now allow multiple archives, so the `archive` statement will be removed.
|
||||||
|
|
||||||
Change this:
|
=== "Before"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
archive:
|
archive:
|
||||||
format: zip
|
format: zip
|
||||||
```
|
```
|
||||||
|
|
||||||
to this:
|
=== "After"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
archives:
|
archives:
|
||||||
- id: foo
|
- id: foo
|
||||||
@ -204,16 +196,14 @@ archives:
|
|||||||
|
|
||||||
We now allow multiple Snapcraft configs, so the `snapcraft` statement will be removed.
|
We now allow multiple Snapcraft configs, so the `snapcraft` statement will be removed.
|
||||||
|
|
||||||
Change this:
|
=== "Before"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
snapcraft:
|
snapcraft:
|
||||||
publish: true
|
publish: true
|
||||||
# ...
|
# ...
|
||||||
```
|
```
|
||||||
|
|
||||||
to this:
|
=== "After"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
snapcrafts:
|
snapcrafts:
|
||||||
-
|
-
|
||||||
@ -227,16 +217,14 @@ snapcrafts:
|
|||||||
|
|
||||||
We now allow multiple NFPM config, so the `nfpm` statement will be removed.
|
We now allow multiple NFPM config, so the `nfpm` statement will be removed.
|
||||||
|
|
||||||
Change this:
|
=== "Before"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
nfpm:
|
nfpm:
|
||||||
formats:
|
formats:
|
||||||
- deb
|
- deb
|
||||||
```
|
```
|
||||||
|
|
||||||
to this:
|
=== "After"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
nfpms:
|
nfpms:
|
||||||
-
|
-
|
||||||
@ -250,16 +238,14 @@ nfpms:
|
|||||||
|
|
||||||
You can now create a Docker image with multiple binaries.
|
You can now create a Docker image with multiple binaries.
|
||||||
|
|
||||||
Change this:
|
=== "Before"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dockers:
|
dockers:
|
||||||
- image: foo/bar
|
- image: foo/bar
|
||||||
binary: foo
|
binary: foo
|
||||||
```
|
```
|
||||||
|
|
||||||
to this:
|
=== "After"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dockers:
|
dockers:
|
||||||
- image: foo/bar
|
- image: foo/bar
|
||||||
@ -275,8 +261,7 @@ This property was deprecated in favor of more flexible `image_templates`.
|
|||||||
The idea is to be able to define several images and tags using templates instead of just one image with tag templates.
|
The idea is to be able to define several images and tags using templates instead of just one image with tag templates.
|
||||||
This flexibility allows images to be pushed to multiple registries.
|
This flexibility allows images to be pushed to multiple registries.
|
||||||
|
|
||||||
Change this:
|
=== "Before"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dockers:
|
dockers:
|
||||||
- image: foo/bar
|
- image: foo/bar
|
||||||
@ -284,8 +269,7 @@ dockers:
|
|||||||
- '{{ .Tag }}'
|
- '{{ .Tag }}'
|
||||||
```
|
```
|
||||||
|
|
||||||
to this:
|
=== "After"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dockers:
|
dockers:
|
||||||
- image_templates:
|
- image_templates:
|
||||||
@ -299,8 +283,7 @@ dockers:
|
|||||||
This property was deprecated in favor of more flexible `image_templates`.
|
This property was deprecated in favor of more flexible `image_templates`.
|
||||||
The idea is to be able to define several images and tags using templates instead of just one image with tag templates.
|
The idea is to be able to define several images and tags using templates instead of just one image with tag templates.
|
||||||
|
|
||||||
Change this:
|
=== "Before"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dockers:
|
dockers:
|
||||||
- image: foo/bar
|
- image: foo/bar
|
||||||
@ -308,8 +291,7 @@ dockers:
|
|||||||
- '{{ .Tag }}'
|
- '{{ .Tag }}'
|
||||||
```
|
```
|
||||||
|
|
||||||
to this:
|
=== "After"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dockers:
|
dockers:
|
||||||
- image_templates:
|
- image_templates:
|
||||||
@ -324,8 +306,7 @@ This property was being used to tell GoReleaser to use short git hashes
|
|||||||
instead of the full ones. This has been removed in favor of specific
|
instead of the full ones. This has been removed in favor of specific
|
||||||
template variables (`.FullCommit` and `.ShortCommit`).
|
template variables (`.FullCommit` and `.ShortCommit`).
|
||||||
|
|
||||||
Change this:
|
=== "Before"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
git:
|
git:
|
||||||
short_hash: true
|
short_hash: true
|
||||||
@ -334,8 +315,7 @@ fake:
|
|||||||
foo_template: 'blah {{ .Commit }}'
|
foo_template: 'blah {{ .Commit }}'
|
||||||
```
|
```
|
||||||
|
|
||||||
to this:
|
=== "After"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
fake:
|
fake:
|
||||||
foo_template: 'blah {{ .ShortCommit }}'
|
foo_template: 'blah {{ .ShortCommit }}'
|
||||||
@ -351,15 +331,13 @@ CI/CD pipelines.
|
|||||||
|
|
||||||
Just replace the `fpm` keyword by `nfpm` in your `goreleaser.yaml` file.
|
Just replace the `fpm` keyword by `nfpm` in your `goreleaser.yaml` file.
|
||||||
|
|
||||||
Change this:
|
=== "Before"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
fpm:
|
fpm:
|
||||||
# ...
|
# ...
|
||||||
```
|
```
|
||||||
|
|
||||||
to this:
|
=== "After"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
nfpm:
|
nfpm:
|
||||||
# ...
|
# ...
|
||||||
@ -372,16 +350,14 @@ nfpm:
|
|||||||
This property was deprecated in favor of the pluralized `tag_templates`.
|
This property was deprecated in favor of the pluralized `tag_templates`.
|
||||||
The idea is to be able to define several tags instead of just one.
|
The idea is to be able to define several tags instead of just one.
|
||||||
|
|
||||||
Change this:
|
=== "Before"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dockers:
|
dockers:
|
||||||
- image: foo/bar
|
- image: foo/bar
|
||||||
tag_template: '{{ .Tag }}'
|
tag_template: '{{ .Tag }}'
|
||||||
```
|
```
|
||||||
|
|
||||||
to this:
|
=== "After"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dockers:
|
dockers:
|
||||||
- image: foo/bar
|
- image: foo/bar
|
||||||
@ -396,16 +372,14 @@ dockers:
|
|||||||
The `latest` field in Docker config is deprecated in favor of the newer
|
The `latest` field in Docker config is deprecated in favor of the newer
|
||||||
`tag_templates` field.
|
`tag_templates` field.
|
||||||
|
|
||||||
Change this:
|
=== "Before"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dockers:
|
dockers:
|
||||||
- image: foo/bar
|
- image: foo/bar
|
||||||
latest: true
|
latest: true
|
||||||
```
|
```
|
||||||
|
|
||||||
to this:
|
=== "After"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dockers:
|
dockers:
|
||||||
- image: foo/bar
|
- image: foo/bar
|
||||||
|
@ -89,3 +89,5 @@ markdown_extensions:
|
|||||||
- meta
|
- meta
|
||||||
- toc:
|
- toc:
|
||||||
permalink: true
|
permalink: true
|
||||||
|
- pymdownx.tabbed
|
||||||
|
- pymdownx.superfences
|
||||||
|
Reference in New Issue
Block a user