Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: update to go 1.19 #252

Merged

Conversation

Kavindu-Dodan
Copy link
Contributor

This PR

Update Go version from 1.18 to 1.19.

Go 1.22 rc2 is alrady out and this is an attempt to gradually upgrade to go 1.20, keeping support for the last two major versions.

@Kavindu-Dodan Kavindu-Dodan requested a review from a team as a code owner February 5, 2024 23:36
Copy link

codecov bot commented Feb 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@6f71fe4). Click here to learn what that means.

❗ Current head a5467f8 differs from pull request most recent head cc68648. Consider uploading reports for the commit cc68648 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #252   +/-   ##
=======================================
  Coverage        ?   81.61%           
=======================================
  Files           ?       10           
  Lines           ?     1142           
  Branches        ?        0           
=======================================
  Hits            ?      932           
  Misses          ?      192           
  Partials        ?       18           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@thomaspoignant
Copy link
Member

Why GO 1.19 and not go 1.20?
End of life of 1.19 was 5 month ago.

https://endoflife.date/go

@Kavindu-Dodan Kavindu-Dodan changed the title feat: update to go 1.19 feat!: update to go 1.19 Feb 6, 2024
@Kavindu-Dodan Kavindu-Dodan force-pushed the feat/update-go-version branch from 90888e8 to 0438082 Compare February 6, 2024 15:56
@toddbaert
Copy link
Member

toddbaert commented Feb 6, 2024

@Kavindu-Dodan we can't mark this as feat!, it will force a 2.0 which is really nasty to deal with. We can consider upgrading the min version OFF of unsupported go version non-breaking.... but I agree we should go to 1.20 I think.

@Kavindu-Dodan
Copy link
Contributor Author

@Kavindu-Dodan we can't mark this as feat!, it will force a 2.0 which is really nasty to deal with. We can consider upgrading the min version OFF of unsupported go version non-breaking.... but I agree we should go to 1.20 I think.

Good point. Yes I remember this happening before.

Still I think conventional commit messages and titles are valuble. Shall we attempt this strategy where we can enforce release version through main branch commit - https://github.com/googleapis/release-please/tree/main?tab=readme-ov-file#how-do-i-change-the-version-number ?

Otherwise I will revert the title :)

@Kavindu-Dodan Kavindu-Dodan force-pushed the feat/update-go-version branch from 0438082 to a5467f8 Compare February 6, 2024 17:58
@Kavindu-Dodan
Copy link
Contributor Author

Why GO 1.19 and not go 1.20? End of life of 1.19 was 5 month ago.

https://endoflife.date/go

Agree. I did not want to bump two major versions and this is why the update to 1.19. Soon I think we will update to 1.20 :)

@toddbaert
Copy link
Member

@Kavindu-Dodan we can't mark this as feat!, it will force a 2.0 which is really nasty to deal with. We can consider upgrading the min version OFF of unsupported go version non-breaking.... but I agree we should go to 1.20 I think.

Good point. Yes I remember this happening before.

Still I think conventional commit messages and titles are valuble. Shall we attempt this strategy where we can enforce release version through main branch commit - https://github.com/googleapis/release-please/tree/main?tab=readme-ov-file#how-do-i-change-the-version-number ?

Otherwise I will revert the title :)

I think you should just revert the title, I think people will not be surprised to see this support drop and it will show up clearly in the release notes (just my 2c).

@Kavindu-Dodan Kavindu-Dodan changed the title feat!: update to go 1.19 feat: update to go 1.19 Feb 6, 2024
@thomaspoignant
Copy link
Member

People using GO are migrating easily to other version I am not sure a new major version is needed.
Especially because if GO version is not compatible go will not let you update it in your go.mod so no risk to build something not compatible.

@Kavindu-Dodan
Copy link
Contributor Author

@Kavindu-Dodan we can't mark this as feat!, it will force a 2.0 which is really nasty to deal with. We can consider upgrading the min version OFF of unsupported go version non-breaking.... but I agree we should go to 1.20 I think.

Good point. Yes I remember this happening before.
Still I think conventional commit messages and titles are valuble. Shall we attempt this strategy where we can enforce release version through main branch commit - https://github.com/googleapis/release-please/tree/main?tab=readme-ov-file#how-do-i-change-the-version-number ?
Otherwise I will revert the title :)

I think you should just revert the title, I think people will not be surprised to see this support drop and it will show up clearly in the release notes (just my 2c).

Done ✅

Copy link
Member

@toddbaert toddbaert left a comment

Choose a reason for hiding this comment

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

I don't feel too strongly in any direction, but I'm OK with releasing this and then upgrading again to 1.20 when 1.22 is released in Feb

@Kavindu-Dodan
Copy link
Contributor Author

People using GO are migrating easily to other version I am not sure a new major version is needed. Especially because if GO version is not compatible go will not let you update it in your go.mod so no risk to build something not compatible.

@thomaspoignant agree and we are not making a major release. I have updated the title to avoid trigger this.

Beside, I created #253 to track 1.20 upgrade. I think we should do this towards end of February 2024.

Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
@Kavindu-Dodan Kavindu-Dodan force-pushed the feat/update-go-version branch from a5467f8 to cc68648 Compare February 7, 2024 19:17
@Kavindu-Dodan Kavindu-Dodan merged commit 47f8a46 into open-feature:main Feb 7, 2024
4 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants