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

Backport of chore(lint): use Go stdlib variables for HTTP methods and status codes into release/1.4.x #18072

Merged

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #17968 to be assessed for backporting due to the inclusion of the label backport/1.4.x.

WARNING automatic cherry-pick of commits failed. Commits will require human attention.

The below text is copied from the body of the original PR.


What

  • Modify net/http related calls to consistently use HTTP methods and response codes from variables/constants provided by the pkg.
  • Add usestdlibvars to lint configuration.

See #18061 and #18062 for changes related to node pool and variable endpoints.

Why

Some parts of the codebase already use these. With this PR, better code consistency and reliability.

@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/chore/usestdlibvars/hideously-darling-insect branch from 2637857 to ea689f7 Compare July 26, 2023 14:28
@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/chore/usestdlibvars/hideously-darling-insect branch from ea689f7 to 2637857 Compare July 26, 2023 14:28
@hashicorp-cla
Copy link

hashicorp-cla commented Jul 26, 2023

CLA assistant check
All committers have signed the CLA.

@vercel vercel bot temporarily deployed to Preview – nomad July 26, 2023 14:34 Inactive
@jrasell jrasell merged commit 13a494e into release/1.4.x Jul 26, 2023
20 checks passed
@jrasell jrasell deleted the backport/chore/usestdlibvars/hideously-darling-insect branch July 26, 2023 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants