Skip to content

Chore: tidy for go 1.20#902

Merged
korylprince merged 9 commits intomicromdm:mainfrom
jamesez:chore-tidy-for-go-1.20
Jul 11, 2023
Merged

Chore: tidy for go 1.20#902
korylprince merged 9 commits intomicromdm:mainfrom
jamesez:chore-tidy-for-go-1.20

Conversation

@jamesez
Copy link
Contributor

@jamesez jamesez commented Jul 11, 2023

Go 1.20's test will fail mdmctl because of strings with trailing newlines. This PR removes the newlines, and adds 1.20 to the build matrix.

I also tidied three minor complaints from staticcheck.

@jamesez jamesez marked this pull request as ready for review July 11, 2023 15:57
@jessepeterson
Copy link
Member

i notice a few (most?) of the newline changes are removing newlines from text that is directly output. i.e. it’s for formatting/output style on a console. does your PR maintain that same formatting?

@jamesez
Copy link
Contributor Author

jamesez commented Jul 11, 2023

i notice a few (most?) of the newline changes are removing newlines from text that is directly output. i.e. it’s for formatting/output style on a console. does your PR maintain that same formatting?

I've made all but one out be md5 identical to previous - the previous output had a trailing whitespace on one line.

Copy link
Contributor

@korylprince korylprince left a comment

Choose a reason for hiding this comment

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

LGTM. I also updated the Go versions for CI and the Dockerfile, and updated the CHANGELOG.

@korylprince korylprince merged commit 7a37154 into micromdm:main Jul 11, 2023
@jamesez jamesez deleted the chore-tidy-for-go-1.20 branch July 12, 2023 00:59
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.

3 participants