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

chore: fix issues with Go 1.18 in CI #416

Merged
merged 2 commits into from
Jun 27, 2022
Merged

chore: fix issues with Go 1.18 in CI #416

merged 2 commits into from
Jun 27, 2022

Conversation

serenibyss
Copy link

@serenibyss serenibyss commented Jun 27, 2022

Cleans up Go version handling and removes some workarounds that are no longer needed since we are on Go 1.18

func strFactory(arg interface{}) *string {
val := (arg.(string)) // Docker image runs Go 1.17, so we can't use generics here.
return &val
func ptrFactory[T any](arg T) *T {
Copy link
Author

Choose a reason for hiding this comment

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

This change is mainly to show that Go 1.18 features work fine in a CI environment

@serenibyss serenibyss marked this pull request as ready for review June 27, 2022 20:06
@serenibyss serenibyss merged commit 56a8276 into main Jun 27, 2022
@serenibyss serenibyss deleted the ds-clean-up-build branch June 27, 2022 20:11
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