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

Update Go-Fastly dependency to 3.0.0 #359

Merged
merged 3 commits into from
Jan 29, 2021

Conversation

Integralist
Copy link
Collaborator

There is a new major version release for the Go-Fastly dependency. It introduces some breaking changes, which this PR addresses.

NOTE: as part of the current TLS implementation work, there will need to be changes added to a 3.x.x release of Go-Fastly and so integrating the TLS features into Terraform will be blocked until this PR is merged.

@Integralist Integralist requested a review from a team January 29, 2021 10:47
Copy link
Contributor

@doramatadora doramatadora left a comment

Choose a reason for hiding this comment

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

LGTM, with some nitpicky copyedits 🎉

@@ -46,7 +46,7 @@ const DefaultRealtimeStatsEndpoint = "https://rt.fastly.com"
var ProjectURL = "github.com/fastly/go-fastly"

// ProjectVersion is the version of this library.
var ProjectVersion = "2.1.0"
var ProjectVersion = "3.0.0"

// UserAgent is the user agent for this particular client.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// UserAgent is the user agent for this particular client.
// UserAgent is the user agent for this client.

Comment on lines +332 to +333
// String implements the stringer interface and returns the string representing
// the string text that includes the status code and corresponding status text.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// String implements the stringer interface and returns the string representing
// the string text that includes the status code and corresponding status text.
// String implements the string interface and returns a string
// that includes the status code and corresponding status text.

@Integralist
Copy link
Collaborator Author

Integralist commented Jan 29, 2021

Thanks @doramatadora but unfortunately those edits will need to be made to the Go-Fastly repo. The terraform provider vendors its dependencies, so the files you've suggested changes to would be overwritten the next time someone runs go mod vendor.

@doramatadora
Copy link
Contributor

Thank you for the explanation! In that case, this looks great. I will open a PR in Go-Fastly.

@Integralist
Copy link
Collaborator Author

Ran the full test suite and it's passing.

@Integralist Integralist force-pushed the integralist/20210129_gofastly_3.0.0 branch from 11b621a to deda1ef Compare January 29, 2021 17:06
@Integralist Integralist added the enhancement New feature or request label Jan 29, 2021
@Integralist Integralist merged commit 13d1c04 into master Jan 29, 2021
@Integralist Integralist deleted the integralist/20210129_gofastly_3.0.0 branch January 29, 2021 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants