Skip to content

Conversation

BooleanCat
Copy link
Contributor

@BooleanCat BooleanCat commented Jun 20, 2025

Changes proposed by this PR

No functional change. This simply removes the github.com/pkg/errors package in favour of errors. The former has been deprecated for a while.

There's a small bonus change - a demonstration of using the new maps package to to simplify some code. There are probably other places in the code base where use of maps or slices would simplify things.

Notes to reviewer

N/A

@taylorsilva
Copy link
Member

taylorsilva commented Jun 20, 2025

Looks like there's an error in the atc/builds/ test suite.

You can run this locally to reproduce:

go test -v ./atc/builds

I verified the error doesn't happen on master, it's something in your branch here.

Signed-off-by: Tom Godkin <tomgodkin@pm.me>
@BooleanCat
Copy link
Contributor Author

@taylorsilva thanks! Think I've fixed that now.

@taylorsilva taylorsilva moved this from Todo to In Progress in Pull Requests Jun 20, 2025
@BooleanCat
Copy link
Contributor Author

@taylorsilva I did a quick scan and found a bunch more instances where maps can be used that will remove ~30 lines of code in total if you're happy for them to go in this PR or I can raise another. Here's an example:

image

@taylorsilva
Copy link
Member

Yeah there's a bunch of those. I'm fine with adding them to this PR, go for it 🙂

Signed-off-by: Tom Godkin <tomgodkin@pm.me>
@BooleanCat
Copy link
Contributor Author

@taylorsilva I think I found all the obvious ones

Copy link
Member

@taylorsilva taylorsilva left a comment

Choose a reason for hiding this comment

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

LGTM - Thanks for cleaning up that cruft!

@taylorsilva taylorsilva merged commit a131976 into concourse:master Jun 23, 2025
12 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Pull Requests Jun 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants