Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove deprecated options #267

Merged
merged 15 commits into from
Dec 23, 2020
Merged

feat: remove deprecated options #267

merged 15 commits into from
Dec 23, 2020

Conversation

caarlos0
Copy link
Member

regarding #255, removing the old options.

We will then version this as v2 (breaking change). Easier than keep a lot of things working.

Will still have to do the deprecation notice et all on goreleaser, but its on a single place then.

Signed-off-by: Carlos Alexandro Becker <[email protected]>
Signed-off-by: Carlos Alexandro Becker <[email protected]>
@caarlos0 caarlos0 added the enhancement New feature or request label Dec 22, 2020
@caarlos0 caarlos0 self-assigned this Dec 22, 2020
@vercel
Copy link

vercel bot commented Dec 22, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/goreleaser/nfpm/d4nnn4yya
✅ Preview: https://nfpm-git-v2.goreleaser.vercel.app

@pull-request-size pull-request-size bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Dec 22, 2020
Signed-off-by: Carlos Alexandro Becker <[email protected]>
@pull-request-size pull-request-size bot removed the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Dec 22, 2020
@vercel vercel bot temporarily deployed to Preview December 22, 2020 12:21 Inactive
@pull-request-size pull-request-size bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Dec 22, 2020
Signed-off-by: Carlos Alexandro Becker <[email protected]>
@vercel vercel bot temporarily deployed to Preview December 22, 2020 12:28 Inactive
Signed-off-by: Carlos Alexandro Becker <[email protected]>
@vercel vercel bot temporarily deployed to Preview December 22, 2020 12:29 Inactive
@caarlos0
Copy link
Member Author

caarlos0 commented Dec 22, 2020

@djgilcrease I'm not sure why, but symlink tests on rpm and deb are failing 🤔

I think it wasn't supposed to work before actually, since the actual file is never added to the package... does that makes sense?

EDIT: Ignore me, I was doing the wrong thing.

Signed-off-by: Carlos Alexandro Becker <[email protected]>
@vercel vercel bot temporarily deployed to Preview December 22, 2020 12:33 Inactive
Signed-off-by: Carlos Alexandro Becker <[email protected]>
@vercel vercel bot temporarily deployed to Preview December 22, 2020 12:40 Inactive
Signed-off-by: Carlos Alexandro Becker <[email protected]>
@vercel vercel bot temporarily deployed to Preview December 22, 2020 12:45 Inactive
Signed-off-by: Carlos Alexandro Becker <[email protected]>
@vercel vercel bot temporarily deployed to Preview December 22, 2020 13:26 Inactive
@djgilcrease
Copy link
Contributor

As part of this make sure you read https://blog.golang.org/v2-go-modules many people at my work have tried to bump to v2 but not read that and broken things in odd ways.

@caarlos0
Copy link
Member Author

As part of this make sure you read https://blog.golang.org/v2-go-modules many people at my work have tried to bump to v2 but not read that and broken things in odd ways.

yep, here's a picture of me reading it the last time I needed:

image

😂

Signed-off-by: Carlos Alexandro Becker <[email protected]>
@vercel vercel bot temporarily deployed to Preview December 22, 2020 16:52 Inactive
Signed-off-by: Carlos Alexandro Becker <[email protected]>
Signed-off-by: Carlos Alexandro Becker <[email protected]>
Signed-off-by: Carlos Alexandro Becker <[email protected]>
@vercel vercel bot temporarily deployed to Preview December 22, 2020 17:13 Inactive
Signed-off-by: Carlos Alexandro Becker <[email protected]>
@vercel vercel bot temporarily deployed to Preview December 22, 2020 19:57 Inactive
@caarlos0
Copy link
Member Author

As part of this make sure you read https://blog.golang.org/v2-go-modules many people at my work have tried to bump to v2 but not read that and broken things in odd ways.

In the past, I simply changed the module to /v2 in go.mod (e.g. https://github.com/caarlos0/env), but yeah, they recommend a v2 subfolder, which I absolutely hate and 0/10 will not do it. Just renaming works for go mod and non-go mod usage, but old versions won't work under go mods anymore (if I recall correctly).

Maybe just keep a v2 branch? Anyone with more experience with that?

@caarlos0
Copy link
Member Author

Other strategies may keep major versions on separate branches. However, if v2+ source code is on the repository's default branch (usually master), tools that are not version-aware — including the go command in GOPATH mode — may not distinguish between major versions.

IMHO ¯_(ツ)_/¯ and we can just append /v2 to the go.mod file... YOLO

Signed-off-by: Carlos Alexandro Becker <[email protected]>
@vercel vercel bot temporarily deployed to Preview December 22, 2020 20:16 Inactive
@codecov
Copy link

codecov bot commented Dec 22, 2020

Codecov Report

Merging #267 (8d06195) into master (df152db) will decrease coverage by 0.93%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #267      +/-   ##
==========================================
- Coverage   70.38%   69.44%   -0.94%     
==========================================
  Files           9        9              
  Lines        1138     1103      -35     
==========================================
- Hits          801      766      -35     
  Misses        209      209              
  Partials      128      128              
Impacted Files Coverage Δ
cmd/nfpm/main.go 0.00% <ø> (ø)
nfpm.go 79.59% <100.00%> (-5.38%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update df152db...8d06195. Read the comment docs.

@djgilcrease
Copy link
Contributor

Other strategies may keep major versions on separate branches. However, if v2+ source code is on the repository's default branch (usually master), tools that are not version-aware — including the go command in GOPATH mode — may not distinguish between major versions.

IMHO ¯_(ツ)_/¯ and we can just append /v2 to the go.mod file... YOLO

Ya that works, I don't really like the branch or sub folder method either, but it does make supporting older versions easier if we need to for some reason.

Copy link
Contributor

@djgilcrease djgilcrease left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@caarlos0 caarlos0 changed the title WIP: feat: remove deprecated options feat: remove deprecated options Dec 23, 2020
@caarlos0 caarlos0 merged commit 1981723 into master Dec 23, 2020
@caarlos0 caarlos0 deleted the v2 branch December 23, 2020 00:28
@caarlos0 caarlos0 mentioned this pull request Dec 23, 2020
@github-actions
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants