-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added --bump option for outdated/upgrade
- Loading branch information
Showing
59 changed files
with
474 additions
and
325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ concurrency: | |
|
||
env: | ||
MISE_EXPERIMENTAL: 1 | ||
NPM_CONFIG_FUND: false | ||
|
||
jobs: | ||
release-plz: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,11 +20,6 @@ jobs: | |
runs-on: ${{matrix.runs-on}} | ||
timeout-minutes: 45 | ||
env: | ||
#RUSTC_WRAPPER: sccache | ||
SCCACHE_ENDPOINT: minio.jdx.dev | ||
SCCACHE_BUCKET: sccache | ||
SCCACHE_REGION: auto | ||
SCCACHE_S3_NO_CREDENTIALS: ${{ secrets.MINIO_AWS_ACCESS_KEY_ID && '0' || '1' }} | ||
MINIO_AWS_ACCESS_KEY_ID: ${{ secrets.MINIO_AWS_ACCESS_KEY_ID }} | ||
MINIO_AWS_SECRET_ACCESS_KEY: ${{ secrets.MINIO_AWS_SECRET_ACCESS_KEY }} | ||
strategy: | ||
|
@@ -74,11 +69,6 @@ jobs: | |
p12-file-base64: ${{ secrets.APPLE_DEVELOPER_ID_APPLICATION_CERTS_P12 }} | ||
p12-password: ${{ secrets.APPLE_DEVELOPER_ID_APPLICATION_CERTS_P12_PASS }} | ||
- uses: actions/checkout@v4 | ||
- if: ${{ env.SCCACHE_S3_NO_CREDENTIALS == '0' }} | ||
run: | | ||
echo "AWS_ACCESS_KEY_ID=$MINIO_AWS_ACCESS_KEY_ID" >> "$GITHUB_ENV" | ||
echo "AWS_SECRET_ACCESS_KEY=$MINIO_AWS_SECRET_ACCESS_KEY" >> "$GITHUB_ENV" | ||
- uses: mozilla-actions/[email protected] | ||
- name: cache crates | ||
id: cache-crates | ||
uses: actions/cache@v4 | ||
|
@@ -109,19 +99,10 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- if: steps.cache-crates.outputs.cache-hit != 'true' | ||
run: cargo cache --autoclean | ||
- run: ${SCCACHE_PATH} --show-stats | ||
build-tarball-windows: | ||
name: build-tarball-windows-${{matrix.arch}} | ||
runs-on: windows-latest | ||
timeout-minutes: 45 | ||
env: | ||
#RUSTC_WRAPPER: sccache | ||
SCCACHE_ENDPOINT: minio.jdx.dev | ||
SCCACHE_BUCKET: sccache | ||
SCCACHE_REGION: auto | ||
SCCACHE_S3_NO_CREDENTIALS: ${{ secrets.MINIO_AWS_ACCESS_KEY_ID && '0' || '1' }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.MINIO_AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.MINIO_AWS_SECRET_ACCESS_KEY }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -133,7 +114,6 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
- run: rustup target add ${{matrix.target}} | ||
- uses: mozilla-actions/[email protected] | ||
- name: cache crates | ||
id: cache-crates | ||
uses: actions/cache@v4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,14 +17,8 @@ env: | |
MISE_TRUSTED_CONFIG_PATHS: ${{ github.workspace }} | ||
MISE_EXPERIMENTAL: 1 | ||
RUST_BACKTRACE: 1 | ||
#RUSTC_WRAPPER: sccache | ||
SCCACHE_ENDPOINT: minio.jdx.dev | ||
SCCACHE_BUCKET: sccache | ||
SCCACHE_REGION: auto | ||
SCCACHE_S3_NO_CREDENTIALS: ${{ secrets.MINIO_AWS_ACCESS_KEY_ID && '0' || '1' }} | ||
MINIO_AWS_ACCESS_KEY_ID: ${{ secrets.MINIO_AWS_ACCESS_KEY_ID }} | ||
MINIO_AWS_SECRET_ACCESS_KEY: ${{ secrets.MINIO_AWS_SECRET_ACCESS_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_CONFIG_FUND: false | ||
|
||
permissions: | ||
pull-requests: write | ||
|
@@ -87,11 +81,6 @@ jobs: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
token: ${{ secrets.RTX_GITHUB_BOT_TOKEN || github.token }} | ||
- if: ${{ env.SCCACHE_S3_NO_CREDENTIALS == '0' }} | ||
run: | | ||
echo "AWS_ACCESS_KEY_ID=$MINIO_AWS_ACCESS_KEY_ID" >> "$GITHUB_ENV" | ||
echo "AWS_SECRET_ACCESS_KEY=$MINIO_AWS_SECRET_ACCESS_KEY" >> "$GITHUB_ENV" | ||
- uses: mozilla-actions/[email protected] | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
{ toolchain: nightly, components: "rustfmt, clippy", rustflags: "" } | ||
|
@@ -116,7 +105,6 @@ jobs: | |
push: true | ||
author_name: mise[bot] | ||
author_email: [email protected] | ||
- run: ${SCCACHE_PATH} --show-stats | ||
|
||
coverage: | ||
name: coverage-${{matrix.tranche}} | ||
|
@@ -131,11 +119,6 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- if: ${{ env.SCCACHE_S3_NO_CREDENTIALS == '0' }} | ||
run: | | ||
echo "AWS_ACCESS_KEY_ID=$MINIO_AWS_ACCESS_KEY_ID" >> "$GITHUB_ENV" | ||
echo "AWS_SECRET_ACCESS_KEY=$MINIO_AWS_SECRET_ACCESS_KEY" >> "$GITHUB_ENV" | ||
- uses: mozilla-actions/[email protected] | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
shared-key: coverage | ||
|
@@ -179,7 +162,6 @@ jobs: | |
name: coverage-${{matrix.tranche}}.lcov | ||
path: coverage-${{matrix.tranche}}.lcov | ||
if-no-files-found: error | ||
- run: ${SCCACHE_PATH} --show-stats | ||
coverage-report: | ||
name: coverage-report | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,5 @@ | ||
target.x86_64-unknown-linux-gnu.pre-build = "./scripts/sccache.sh" | ||
target.x86_64-unknown-linux-musl.pre-build = "./scripts/sccache.sh" | ||
#target.aarch64-unknown-linux-gnu.pre-build = "./scripts/sccache.sh" | ||
#target.aarch64-unknown-linux-musl.pre-build = "./scripts/sccache.sh" | ||
#target.armv7-unknown-linux-gnueabihf.pre-build = "./scripts/sccache.sh" | ||
#target.armv7-unknown-linux-musleabihf.pre-build = "./scripts/sccache.sh" | ||
#target.arm-unknown-linux-gnueabi.pre-build = "./scripts/sccache.sh" | ||
#target.arm-unknown-linux-musleabi.pre-build = "./scripts/sccache.sh" | ||
#target.x86_64-apple-darwin.pre-build = "./scripts/sccache.sh" | ||
#target.aarch64-apple-darwin.pre-build = "./scripts/sccache.sh" | ||
#target.aarch64-pc-windows-msvc.pre-build = "./scripts/sccache.sh" | ||
#target.x86_64-pc-windows-msvc.pre-build = "./scripts/sccache.sh" | ||
|
||
[build.env] | ||
passthrough = [ | ||
"AWS_ACCESS_KEY_ID", | ||
"AWS_SECRET_ACCESS_KEY", | ||
"RUSTC_WRAPPER", | ||
"SCCACHE_BUCKET", | ||
"SCCACHE_DIR", | ||
"SCCACHE_ENDPOINT", | ||
"SCCACHE_ERROR_LOG", | ||
"SCCACHE_LOG", | ||
"SCCACHE_REGION", | ||
"SCCACHE_S3_NO_CREDENTIALS", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -597,7 +597,11 @@ cmd "outdated" help="Shows outdated tool versions" { | |
$ mise outdated --json | ||
{"python": {"requested": "3.11", "current": "3.11.0", "latest": "3.11.1"}, ...} | ||
"# | ||
flag "-l --bump" help="Compares against the latest versions available, not what matches the current config" { | ||
long_help "Compares against the latest versions available, not what matches the current config\n\nFor example, if you have `node = \"20\"` in your config by default `mise outdated` will only\nshow other 20.x versions, not 21.x or 22.x versions.\n\nUsing this flag, if there are 21.x or newer versions it will display those instead of 20.x." | ||
} | ||
flag "-J --json" help="Output in JSON format" | ||
flag "--no-header" help="Don't show table header" | ||
arg "[TOOL@VERSION]..." help="Tool(s) to show outdated versions for\ne.g.: node@20 [email protected]\nIf not specified, all tools in global and local configs will be shown" var=true | ||
} | ||
cmd "plugins" help="Manage plugins" { | ||
|
@@ -1214,10 +1218,13 @@ By default this command modifies ".mise.toml" in the current directory."# | |
cmd "upgrade" help="Upgrades outdated tool versions" { | ||
alias "up" | ||
flag "-n --dry-run" help="Just print what would be done, don't actually do it" | ||
flag "-i --interactive" help="Display multiselect menu to choose which tools to upgrade" | ||
flag "-j --jobs" help="Number of jobs to run in parallel\n[default: 4]" { | ||
arg "<JOBS>" | ||
} | ||
flag "-i --interactive" help="Display multiselect menu to choose which tools to upgrade" | ||
flag "-l --bump" help="Upgrades to the latest version available, bumping the version in mise.toml" { | ||
long_help "Upgrades to the latest version available, bumping the version in mise.toml\n\nFor example, if you have `node = \"20.0.0\"` in your mise.toml but 22.1.0 is the latest available,\nthis will install 22.1.0 and set `node = \"22.1.0\"` in your config.\n\nIt keeps the same precision as what was there before, so if you instead had `node = \"20\"`, it\nwould change your config to `node = \"22\"`." | ||
} | ||
flag "--raw" help="Directly pipe stdin/stdout/stderr from plugin to user Sets --jobs=1" | ||
arg "[TOOL@VERSION]..." help="Tool(s) to upgrade\ne.g.: node@20 [email protected]\nIf not specified, all current tools will be upgraded" var=true | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.