-
Notifications
You must be signed in to change notification settings - Fork 2k
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
build: update to go1.19 #14132
build: update to go1.19 #14132
Conversation
104b7d4
to
aebd61f
Compare
1384e16
to
465faa5
Compare
465faa5
to
12659f8
Compare
12659f8
to
cabe0b8
Compare
I'll open the followup PRs for backports |
@@ -89,7 +89,7 @@ func (tc *ConsulTemplateTest) AfterEach(f *framework.F) { | |||
// - missing keys block allocations from starting | |||
// - key updates trigger re-render | |||
// - service updates trigger re-render | |||
// - 'noop' vs ''restart' configuration | |||
// - 'noop' vs ”restart' configuration |
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.
golang/go#54312 🤦♂️
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.
I don't know if the changes I pointed out can be fixed without gofmt
complaining 😅
client/state/upgrade.go
Outdated
// * allocations | ||
// * 15d83e8a-74a2-b4da-3f17-ed5c12895ea8 | ||
// * echo | ||
// - simple-all (342 bytes) | ||
// - alloc (2827 bytes) | ||
// - alloc-dir (166 bytes) | ||
// - immutable (15 bytes) | ||
// - mutable (1294 bytes) | ||
// | ||
// - allocations | ||
// - 15d83e8a-74a2-b4da-3f17-ed5c12895ea8 | ||
// - echo | ||
// - simple-all (342 bytes) | ||
// - alloc (2827 bytes) | ||
// - alloc-dir (166 bytes) | ||
// - immutable (15 bytes) | ||
// - mutable (1294 bytes) |
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.
I think the indentation here is relevant? Is that a bug in gofmt
?
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.
Good catch, I think we can just eliminate the dashes so gofmt doesn't assume this is a list
//func (c *fakeCheckRestarter) Restart(source, reason string, failure bool) { | ||
// func (c *fakeCheckRestarter) Restart(source, reason string, failure bool) { |
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.
This seems like it can be deleted altogether? 😅
// | ||
// enabled. (Coming in followup PR). |
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.
I think that's how it should look like?
// | |
// enabled. (Coming in followup PR). | |
// enabled. (Coming in followup PR). |
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.
I'll just make the whole thing one line
@@ -40,7 +40,7 @@ func (b *HCLParser) WithVars(vars map[string]cty.Value) *HCLParser { | |||
// out parameter should be a golang reference to a driver specific TaskConfig reference. | |||
// The function terminates and reports errors if any is found during conversion. | |||
// | |||
// Sample invocation would be | |||
// # Sample invocation would be |
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.
Maybe this would fix the recommendation? 🤷
// # Sample invocation would be | |
// Sample invocation would be: |
nomad/state/paginator/tokenizer.go
Outdated
// StructsTokenizerOptions { | ||
// WithID: true, | ||
// } | ||
// StructsTokenizerOptions { | ||
// WithID: true, | ||
// } | ||
// | ||
// - Structs that are only unique within their namespace: | ||
// | ||
// StructsTokenizerOptions { | ||
// WithID: true, | ||
// WithNamespace: true, | ||
// } | ||
// StructsTokenizerOptions { | ||
// WithID: true, | ||
// WithNamespace: true, | ||
// } | ||
// | ||
// - Structs that can be sorted by their create index should also set | ||
// `WithCreateIndex` to `true` along with the other options: | ||
// | ||
// StructsTokenizerOptions { | ||
// WithID: true, | ||
// WithNamespace: true, | ||
// WithCreateIndex: true, | ||
// } | ||
// StructsTokenizerOptions { | ||
// WithID: true, | ||
// WithNamespace: true, | ||
// WithCreateIndex: true, | ||
// } |
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.
Weird 😬
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.
figured it out - need to indent by 4 spaces to be in a code block
@@ -1 +1 @@ | |||
1.18.5 | |||
1.19 |
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.
It may be good to also set a patch version?
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.
the .0
release chops off the .0
(we do the same thing!)
Go 1.19 will forecefully format all your doc strings. To get this out of the way, here is one big commit with all the changes gofmt wants to make.
cabe0b8
to
0c62f44
Compare
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. |
aebd61f - update to go1.19 (ok to backport)
1384e16f61be5a01ce762ff7a3618a33e4f3d96e - run gofmt (do not backport- do this manually for each one)
The gofmt command is just
go fmt ./...
and remove the changes to bindata files (protos ok)Closes #14131