-
Notifications
You must be signed in to change notification settings - Fork 127
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
fix(object): change user-agent #2919
base: master
Are you sure you want to change the base?
Conversation
ef300d6
to
a121680
Compare
8ea7005
to
3932d36
Compare
a98c8ee
to
d03de87
Compare
@@ -37,6 +37,8 @@ const ( | |||
maxObjectVersionDeletionWorkers = 8 | |||
|
|||
ErrCodeForbidden = "Forbidden" | |||
|
|||
defaultVersion = "v2.49.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how will this string get maintained through time?
userAgent string | ||
} | ||
|
||
var userAgent = fmt.Sprintf("scaleway-terraform-provider/%s (%s; %s; %s)", defaultVersion, runtime.Version(), runtime.GOOS, runtime.GOARCH) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var userAgent = fmt.Sprintf("scaleway-terraform-provider/%s (%s; %s; %s)", defaultVersion, runtime.Version(), runtime.GOOS, runtime.GOARCH) | |
var userAgent = fmt.Sprintf("terraform-provider/%s (%s; %s; %s)", defaultVersion, runtime.Version(), runtime.GOOS, runtime.GOARCH) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could also add the version of terraform as well.
here is an example of what we currently have:
scaleway-sdk-go/v1.0.0-beta.30.0.20241129094524-023aa8142bc1 (go1.23.1; linux; amd64) terraform-provider/2.49.0 terraform/1.10.4
No description provided.