Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

improvement: using go built in build-info. #244

Merged
merged 4 commits into from
Nov 20, 2022
Merged

Conversation

paganotoni
Copy link
Member

@paganotoni paganotoni commented Nov 19, 2022

What does this PR do?

This PR changes how we find the VCS part of the build info. It uses Go runtime/debug instead of shelling out to determine it.

Which are the main considerations

One important consideration is the version of Go, Buffalo supports the last 2 versions, and Go latest version is 1.19 (1.20 coming soon). The library used is available since Go 1.18 so we should be good to go.

How did you test this?

I installed this new version of the CLI and make sure that after I compiled my binary it got the build info there by running:

$ mybinary version

Did you discover anything while on this?

While on this one I discovered that the template workflows have versions. I had to tag a new version for the standard go tests (v1.6) on the .github repo and make this branch use it. That new version has the versions set to 1.18 and 1.19.

@paganotoni paganotoni requested a review from a team as a code owner November 19, 2022 20:38
@paganotoni paganotoni requested a review from sio4 November 19, 2022 21:07
@paganotoni paganotoni enabled auto-merge November 19, 2022 22:04
@sio4 sio4 added this to the v1.0.0 milestone Nov 20, 2022
@sio4 sio4 added the internal cleanup internal cleanup (or a kind of refactoring) label Nov 20, 2022
Copy link
Member

@sio4 sio4 left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -8,5 +8,5 @@ on:
jobs:
call-standard-test:
name: Test
uses: gobuffalo/.github/.github/workflows/go-test.yml@v1
uses: gobuffalo/.github/.github/workflows/go-test.yml@v1.6
Copy link
Member

Choose a reason for hiding this comment

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

After the next core release I am preparing nowadays, I will update the tag v1 to point v1.6 so all packages will use the versions! Thanks!

@paganotoni paganotoni merged commit 83b1484 into main Nov 20, 2022
@sio4
Copy link
Member

sio4 commented Nov 20, 2022

I have some action items on Pop and Core. After finishing them, I would like to update the CLI dependencies and will prepare the next version.

@paganotoni paganotoni deleted the task-runtime-buildinfo branch November 20, 2022 16:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
internal cleanup internal cleanup (or a kind of refactoring)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants