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

support development Go version #79

Merged
merged 3 commits into from
Nov 15, 2024

Conversation

sivchari
Copy link
Contributor

close #78
I supported development Go version.

In additional, I filed the patches to skeletonkit, too. When it will be merged, I upgrade the dependency of skeletonkit.

Copy link
Member

@tenntenn tenntenn left a comment

Choose a reason for hiding this comment

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

I left a comment.

if strings.HasPrefix(gover, "devel ") {
// The devel format is like following.
// devel go1.24-xxxxxxxxxx Day Date Mon Time Arch"
gover = strings.Split(strings.TrimPrefix(gover, "devel "), "-")[0]
Copy link
Member

Choose a reason for hiding this comment

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

Could you use strings.Cut instead of strings.Split?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's reasonable, thanks. I fixed it.

Signed-off-by: sivchari <[email protected]>
Copy link
Member

@tenntenn tenntenn left a comment

Choose a reason for hiding this comment

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

LGTM

@tenntenn tenntenn merged commit 8d4152f into gostaticanalysis:main Nov 15, 2024
1 check passed
@github-actions github-actions bot mentioned this pull request Nov 15, 2024
@sivchari
Copy link
Contributor Author

sivchari commented Nov 21, 2024

Hi, @tenntenn
This problem is still existing because the patch that I filed to skeletonkit hasn't been merged yet.
So we should manage it. Thanks.

Error: template: skeleton:64:2: executing "skeleton" at <gomodinit .Path>: error calling gomodinit: create go.mod: invalid language version "devel go1.24-f99f5da18f Thu Nov 14 22:29:26 2024 +0000"

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.

Support to parse devel version
2 participants