Skip to content

TOOLS-4102 Use mise to execute go as well as other dev tools#896

Merged
autarch merged 1 commit into
masterfrom
02-25-tools-4102-use-mise-to-execute-go
Jul 7, 2026
Merged

TOOLS-4102 Use mise to execute go as well as other dev tools#896
autarch merged 1 commit into
masterfrom
02-25-tools-4102-use-mise-to-execute-go

Conversation

@autarch

@autarch autarch commented Feb 25, 2026

Copy link
Copy Markdown
Collaborator

This gets rid of the Go code to install dev tools entirely, and updates (almost) all the places we call these tools to use mise exec. We use Evergreen's caching to cache mise and the tools it installs.

There were a number of complicating factors here.

First, the mise install shell script does not work under Cygwin, which is how it gets run in Evergreen. This means that we need to manually download the Windows tarball for mise and install it.

Second, there are no mise releases for s390x or PowerPC architectures (see jdx/mise#10835). On those platforms, we only need Go and we only use it to do a build. We don't run tests. So we have a new, separate script to find/install Go on thse platforms. We generally expect that the Go we need will already be installed under /opt/golang/go$version, so we chec for tha first. If it doesn't exist, we download and unpack an official Go release tarball instead. Regardless, we do not cache the Go install on these platforms, because of issues with Evergreen caching and symlinks (see comments in the script for more details).

autarch commented Feb 25, 2026

Copy link
Copy Markdown
Collaborator Author

@autarch autarch force-pushed the 02-25-tools-4102_add_a_mise.toml_with_all_of_our_tools branch from 6540086 to a2a3687 Compare February 26, 2026 17:17
@autarch autarch force-pushed the 02-25-tools-4102-use-mise-to-execute-go branch from 2cd5cd3 to 4f2e904 Compare February 26, 2026 17:17
@autarch autarch force-pushed the 02-25-tools-4102-use-mise-to-execute-go branch from 4f2e904 to f5d92f4 Compare February 26, 2026 17:18
@autarch autarch force-pushed the 02-25-tools-4102_add_a_mise.toml_with_all_of_our_tools branch from a2a3687 to 8202f34 Compare February 27, 2026 15:14
@autarch autarch force-pushed the 02-25-tools-4102-use-mise-to-execute-go branch from f5d92f4 to 066bc67 Compare February 27, 2026 15:14
@autarch autarch changed the base branch from 02-25-tools-4102_add_a_mise.toml_with_all_of_our_tools to graphite-base/896 March 2, 2026 20:38
@autarch autarch force-pushed the graphite-base/896 branch from 8202f34 to 48c54ef Compare March 26, 2026 17:06
@autarch autarch force-pushed the 02-25-tools-4102-use-mise-to-execute-go branch from 066bc67 to 779bbdc Compare March 26, 2026 17:06
@autarch autarch changed the base branch from graphite-base/896 to master March 26, 2026 17:06
@autarch autarch force-pushed the 02-25-tools-4102-use-mise-to-execute-go branch 2 times, most recently from b3992d5 to e8a0c62 Compare March 26, 2026 17:22
@autarch autarch changed the base branch from master to graphite-base/896 March 26, 2026 21:15
@autarch autarch force-pushed the 02-25-tools-4102-use-mise-to-execute-go branch from e8a0c62 to be24102 Compare July 6, 2026 18:44
@autarch autarch changed the base branch from graphite-base/896 to master July 6, 2026 18:44

autarch commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author

evergreen retry

@autarch autarch force-pushed the 02-25-tools-4102-use-mise-to-execute-go branch 10 times, most recently from 88abd32 to 5ca7eb4 Compare July 7, 2026 16:18
@autarch autarch force-pushed the 02-25-tools-4102-use-mise-to-execute-go branch from 5ca7eb4 to ab1f72d Compare July 7, 2026 16:49
@autarch autarch requested a review from mmcclimon July 7, 2026 16:54
@autarch autarch marked this pull request as ready for review July 7, 2026 16:54
@autarch autarch requested a review from a team as a code owner July 7, 2026 16:54
This gets rid of the Go code to install dev tools entirely, and updates all the places we call these tools to use `mise exec`.
@autarch autarch force-pushed the 02-25-tools-4102-use-mise-to-execute-go branch from ab1f72d to 9dc0e39 Compare July 7, 2026 17:25

@mmcclimon mmcclimon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Sure; I didn't scrutinize every line of this, but if it works in CI on the platforms we need it to, fine by me.

Comment on lines +25 to +26
powershell.exe -NoProfile -Command \
"Expand-Archive -Path '$(cygpath -w "$tmp_zip")' -DestinationPath '$(cygpath -w "$tmp_extract")' -Force"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

picture me smiling and nodding at PowerShell. (I'm just assuming this works.)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I mean, CI works, so I'm pretty sure this does the thing we need.

autarch commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author

Merge activity

  • Jul 7, 7:33 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jul 7, 7:33 PM UTC: @autarch merged this pull request with Graphite.

@autarch autarch merged commit 9d47ecc into master Jul 7, 2026
46 checks passed
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.

2 participants