Skip to content

Include revision in Microsoft-specific version string#2140

Open
dagood wants to merge 1 commit intomicrosoft/mainfrom
dev/dagood/fix-rev
Open

Include revision in Microsoft-specific version string#2140
dagood wants to merge 1 commit intomicrosoft/mainfrom
dev/dagood/fix-rev

Conversation

@dagood
Copy link
Member

@dagood dagood commented Feb 13, 2026


func writeDevelVersionFile(goRootDir, executableExtension string) (string, error) {
// Use "go tool dist version" to directly get the version the toolset would call itself.
cmd := exec.Command(filepath.Join(goRootDir, "bin", "go"+executableExtension), "tool", "dist", "version")
Copy link
Member Author

Choose a reason for hiding this comment

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

This now runs before the build happens, which doesn't work. I suppose the VERSION file handling actually needs to stay where it is.

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.

1 participant

Comments