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

cleanup: replace TypeToPtr helper methods with pointer.Of #14151

Merged
merged 8 commits into from
Aug 17, 2022

Conversation

pkazmierczak
Copy link
Contributor

Bumping compile time requirement to go 1.18 allows us to simplify our pointer helper methods.

Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

LGTM. 👍

This forces API consumers to bump to go1.18 but seeing as how go1.17 is out of support I don't think that's actually a problem? We should almost certainly backport this to all supported versions, because (a) it'll make for a lot of merge conflicts on backport if we don't and (b) we should get the minimum toolchain bump into those older supported versions as well.

Copy link
Member

@shoenig shoenig left a comment

Choose a reason for hiding this comment

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

LGTM! I was planning on doing this slowly over 2-3 years, but all at once works too 😅

that checks action does look suspicious though

==> Linting hclog statements...
hclogvet: Unexpected package creation during export data loading
make: *** [GNUmakefile:162: check] Error 1
Error: Process completed with exit code 2.

@pkazmierczak
Copy link
Contributor Author

that checks action does look suspicious though

==> Linting hclog statements...
hclogvet: Unexpected package creation during export data loading
make: *** [GNUmakefile:162: check] Error 1
Error: Process completed with exit code 2.

Yeah... so it's because hclogvet uses an outdated go tools version. They recently fixed this issue, I guess I'm gonna have to open a PR against go-hclog...

I tested on my laptop with hclogvet built against latest go-tools and it worked fine.

@shoenig
Copy link
Member

shoenig commented Aug 17, 2022

@pkazmierczak yeah go ahead and make the PR to update go-hclog; I had to do something similar during the 1.18 upgrade too

@pkazmierczak pkazmierczak added backport/1.0.x backport to 1.0.x release line backport/1.1.x backport to 1.1.x release line backport/1.2.x backport to 1.1.x release line backport/1.3.x backport to 1.3.x release line labels Aug 17, 2022
@pkazmierczak pkazmierczak removed backport/1.0.x backport to 1.0.x release line backport/1.1.x backport to 1.1.x release line labels Aug 17, 2022
@pkazmierczak pkazmierczak merged commit c4be2c6 into main Aug 17, 2022
@pkazmierczak pkazmierczak deleted the any-helpers branch August 17, 2022 16:26
bquiroz-bc pushed a commit to bquiroz-bc/nomad that referenced this pull request Oct 14, 2022
… into release/1.3.x (hashicorp#14158)

* cleanup: replace TypeToPtr helper methods with pointer.Of (hashicorp#14151)
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/1.2.x backport to 1.1.x release line backport/1.3.x backport to 1.3.x release line
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants