Skip to content

Add Mise to pulumi-java #1717

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add Mise to pulumi-java #1717

wants to merge 1 commit into from

Conversation

lunaris
Copy link
Contributor

@lunaris lunaris commented Mar 3, 2025

This change adds a .mise.toml to the repository so that Mise can be used to manage developer tooling for pulumi-java. This is inline with other PRs across our estate, such as pulumi/pulumi#18626. Developers with Mise installed can now run mise trust in pulumi-java and have the relevant tooling installed for running make, etc.

@lunaris lunaris added the impact/no-changelog-required This issue doesn't require a CHANGELOG update label Mar 3, 2025
@lunaris lunaris requested a review from a team as a code owner March 3, 2025 15:35
Comment on lines +11 to +16
node = "20"
"npm:pnpm" = "latest"
"npm:typescript" = "latest"
"npm:typescript-language-server" = "latest"
"npm:yarn" = "latest"
python = "3.11"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this required to build Java?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've been a bit cautious since the pulumi submodule means that in theory you may be dipping in and out of the "full monorepo" at points and it's (IMO) handy to have a superset of that tooling available. But I'm happy if we think this is a bad call.

Copy link
Contributor

Choose a reason for hiding this comment

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

Shoudl we add dotnet too in that case? I'm fine either way to be clear, happy to get this in eithre way.

@i-am-tom
Copy link
Contributor

i-am-tom commented Mar 4, 2025

I got the following error on this branch:

$ mise install --verbose
DEBUG ARGS: /opt/homebrew/bin/mise install --verbose
DEBUG config: ~/Git/pulumi/java/.mise.toml
DEBUG config: ~/.config/mise/config.toml
DEBUG installing 1 leaf tools first
DEBUG install_some_versions: java@openjdk-11
INFO  java@openjdk-11                     install
Error:
   0: failed to install core:java@openjdk-11
   1: no metadata found for version openjdk-11

Location:
   src/plugins/core/java.rs:254

Version:
   2025.2.6 macos-arm64 (2025-02-16)

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

Do I need to do some extra setup?

This change adds a `.mise.toml` to the repository so that
[Mise](https://mise.jdx.dev) can be used to manage developer tooling for
`pulumi-java`. This is inline with other PRs across our estate, such as
pulumi/pulumi#18626. Developers with Mise installed can now run `mise
trust` in `pulumi-java` and have the relevant tooling installed for
running `make`, etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/no-changelog-required This issue doesn't require a CHANGELOG update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants