这是indexloc提供的服务,不要输入任何密码
Skip to content

Set User Agent & a bunch of small fixes #178

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

Merged
merged 1 commit into from
May 1, 2024
Merged

Conversation

dglsparsons
Copy link
Collaborator

Set a User-Agent for the Terraform Provider so we can know in our
infrastructure where these requests are originating from.
The user agent is set to terraform-provider-vercel, followed by a /,
and then the most recently tagged version.

To do this, we use ldflags in the goreleaser config. This allows a
hardcoded version (in client/request.go) to be replaced. I have updated
the local build of the provider to also use goreleaser.

I've also fixed the tfproviderlint linter.

Set a User-Agent for the Terraform Provider so we can know in our
infrastructure where these requests are originating from.
The user agent is set to `terraform-provider-vercel`, followed by a `/`,
and then the most recently tagged version.

To do this, we use `ldflags` in the `goreleaser` config. This allows a
hardcoded version (in client/request.go) to be replaced. I have updated
the local build of the provider to also use goreleaser.

I've also fixed the tfproviderlint linter.
@dglsparsons dglsparsons requested review from Schniz and QuiiBz May 1, 2024 13:35
Copy link

@Schniz Schniz left a comment

Choose a reason for hiding this comment

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

:letsgooooo:

@dglsparsons dglsparsons enabled auto-merge (squash) May 1, 2024 13:53
@dglsparsons dglsparsons merged commit 56dcb10 into main May 1, 2024
@dglsparsons dglsparsons deleted the dgls/user-agent branch May 1, 2024 13:54
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.

2 participants