Commit Graph

68 Commits

Author SHA1 Message Date
jdx b2c199a640
chore: format toml with taplo (#3625)
* chore: format toml with taplo

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-17 00:11:27 +00:00
jdx e80f211e04
docs: rename legacy version files to idiomatic version files (#3216)
* docs: rename legacy version files to idiomatic version files

* Delete .python-versions
2024-11-26 18:46:26 -06:00
jdx 551d7a3715 chore: ran `pre-commit run --all-files` against codebase (#3141)
* chore: ran `pre-commit run --all-files` against codebase

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-22 10:42:36 -06:00
jdx 7475d028f4 fix: some bugs with lockfiles (#3113) 2024-11-21 08:24:42 -06:00
jdx 4c4d74d017 feat: added backend aliases (#2979)
Fixes #2885
2024-11-10 18:27:04 +00:00
Rodrigo Vieira da Silva a77321e421 feat(tasks): add shell settings for Windows compatibility in tasks (#2967)
* feat: add windows executable extensions settings

* add default shell configs

* add use shell config

* fix space on run commands

* fix /c description

* fix e2e tests
2024-11-10 05:59:08 -06:00
Jeff Dickey 6dbb82ac15 fix: some bugs with vfox 2024-10-13 22:38:08 -05:00
jdx 27b78d9b56 feat: new cross-backend registry (#2748)
* feat: added new simplified registry

* Commit from GitHub Actions (test)

---------

Co-authored-by: mise[bot] <123107610+mise-en-dev@users.noreply.github.com>
2024-10-13 20:54:17 -05:00
Roland Schaer f72d5f2158 feat: task shell (#2709) 2024-10-06 23:33:10 -05:00
jdx d8f4457ba6 test: clean cwd in unit tests (#2211) 2024-05-28 23:45:54 +00:00
jdx 3a7f208d0e fix(self_update): explicitly set target since there seems to be a bug with .identifier() (#2190)
* fix(self_update): explicitly set target since there seems to be a bug with .identifier()

* Commit from GitHub Actions (test)

---------

Co-authored-by: mise[bot] <123107610+mise-en-dev@users.noreply.github.com>
2024-05-25 16:11:24 +00:00
mise-en-dev fc50206974 chore: release 2024.5.22 (#2179)
* chore: release 2024.5.22

* Commit from GitHub Actions (test)
2024-05-25 09:14:23 -05:00
jdx ca4148aa7b test: ensure tests reset (#2134) 2024-05-18 20:01:27 +00:00
jdx cab376096f test: make unit tests work shuffled (#2133) 2024-05-18 19:03:58 +00:00
Adirelle 87b6e4078e test: isolation of end-to-end tests (#2047)
* removed unused option on node plugin

* chore: release 2024.4.2 (#1872)

* chore(asdf-yarn): fixed url

* chore(sync): added workflow

* fix: asdf-yarn

* chore: release 2024.4.2

* Commit from GitHub Actions (test)

---------

Co-authored-by: Jeff Dickey <216188+jdx@users.noreply.github.com>

* chore(deps): update amannn/action-semantic-pull-request action to v5.5.0 (#1947)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* test: refactor the end-to-end test runner scripts.

* test: remove the fixtures files.

* test: fix/refactor a first batch of e2e tests.

* test: slightly improve the output of the end-to-end tests.

* test: enable MISE_EXPERIMENTAL for all test by default.

* test: simplify assert.sh and add an explicit "skip_slow_test" function

* test: prevent tests from being ran without the run_test wrapper.

* test: remove useless cleanup.

* test: tweak group and notice output messages.

* test: fix another batch of tests.

* test: use default configuration filenames in end-to-end tests.

* test: dispatch e2e tests in subdirectories.

* test: run all e2e as sourced bash scripts.

Those that require zsh/fish are just small wrapper.

* test: tweak python tests.

* test: add the path of the test script in GA annotations.

* test: fix how the test:e2e task finds the tests to execute.

* test: reorganize the tests to mimic the src/ tree.

* test: moved NPM_CONFIG_FUND setting into npm/node tests.

* test: MISE_ALWAYS_KEEP_DOWNLOAD is useless with one-shot test environments.

* test: pass the GITHUB_API_TOKEN variable along.

* test: fix weird quotes in assert.sh.

* test: renamed MISE_TEST_* variables to TEST_*.

So they do not conflict with future MISE_ variables.

* test: improve GA annotations (again).

* test: fix GA annotation parameters.

* test: skip slow test in run_all_tests.

Instead of setting up the whole environment before skipping the test.

* test: (hopefully) the last change to test annotations;

* test: refactor (and fix) most cli E2E tests.

* test: fix npm, pipx and ubi e2e tests by adding the required tools into the dev container.

* test: fixed link and system_node e2e tests.

* test: remove the old, now unused e2e fixtures.

* test: reworked the direnv e2e test (I guess).

* test: have the task test:e2e outputs an error when it finds no test.

* test: display skipped slow tests in the summary.

* test: keep test ordering in e2e tranches.

* test: fix handling of required commands.

* test: fix require_cmd error message.

* chore: add and use a docker:run task.

* chore: pass any github token as an argument when buliding the dev image.

This prevents cargo-binstall from hitting the API rate limit if GITHUB.
The argument is not persisted in the image; it is only available at build time.

* test: define CARGO_HOME and RUSTUP_HOME in the test environment.

* test: moved back ubi installation in its e2e test.

* test: fixed the slow tests.

There are still slow, but at least they pass in the dev container.

* test: temporarily run all tests.

* test: changed the way tests are spread accros test tranches in run_all_tests.

* test: added an e2e test for poetry using python from the system.

* test: fix an error in run_all_tests.

* test: also prevent bash from reading rc files in tests.

* test: install all build and test dependencies for the e2e tests.

* text: fix bash tests.

* test: hopefully fix neovim build.

* test: fix coverage recording from e2e tests.

* test: disable slow tests in PRs.

* test: fix code coverage reporting.

* test: fix an HEREDOC delimiter.

* test: remove the neovim plugin test since it is already tested in a dedicated workflow.

---------

Co-authored-by: Jeff Dickey <216188+jdxcode@users.noreply.github.com>
Co-authored-by: mise-en-dev <release@mise.jdx.dev>
Co-authored-by: Jeff Dickey <216188+jdx@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-12 11:17:41 -05:00
Roland Schaer 7b00e8c240 fix(task): script tasks don't pick up alias from comments (#1828) 2024-03-24 08:40:14 -05:00
Jeff Dickey 46d447969d style: run lint-fix which has changed slightly 2024-03-16 18:53:26 -05:00
jdx 79e307a0cc env: resolve env vars in order (#1519)
* env-man

* Commit from GitHub Actions (test)

* env-man

---------

Co-authored-by: mise[bot] <123107610+mise-en-dev@users.noreply.github.com>
2024-01-26 22:52:42 +00:00
jdx aa96500fe2 pass signals to tasks (#1527)
* pass signals to tasks

* [MegaLinter] Apply linters fixes

---------

Co-authored-by: jdx <jdx@users.noreply.github.com>
2024-01-25 23:43:48 +00:00
jdx 725296cc9b settings: read from config.toml (#1439)
* settings: read from config.toml

* [MegaLinter] Apply linters fixes

---------

Co-authored-by: jdx <jdx@users.noreply.github.com>
2024-01-12 21:01:44 +00:00
jdx 3856c33e1e use ~/.config/mise/settings.toml (#1386)
* use ~/.config/mise/settings.toml

* [MegaLinter] Apply linters fixes

---------

Co-authored-by: jdx <jdx@users.noreply.github.com>
2024-01-07 00:34:20 -06:00
Jeff Dickey f54a250685 rtx -> mise 2024-01-02 16:29:35 -06:00
jdx b9e176d95c task (#1260) 2023-12-24 05:05:22 -06:00
jdx 5cc114dd89 use XDG_STATE_HOME (#1223)
Used for tracked configs and trusted configs.:

Fixes #1218
2023-12-21 01:20:07 +00:00
jdx 2a5b60b11e deprecate missing_runtime_behavior setting (#1073) 2023-12-03 21:03:02 -06:00
jdx 7e8c713384 env-vars: display env vars when nothing else is passed (#1024) 2023-11-29 18:19:50 -06:00
Jeff Dickey 616c46ff09 jdxcode -> jdx (#848) 2023-08-27 17:39:22 +00:00
Jeff Dickey ab20b6a158 move trusted configs from cache to config dir (#836)
also made them symlinks so you can see where they go
2023-08-23 16:52:18 +00:00
Jeff Dickey 10ca21e2c4 allow disabling tools (#636)
This mainly adds 2 new settings:

* disable_tools: intended to be used for disabling core plugins entirely
* legacy_version_file_disable_tools: turn off legacy version file parsing for specific tools instead of disabling all of them
2023-06-28 11:15:39 -05:00
Jeff Dickey e0aa3a5c5a add some test coverage to fix flaky coverage count (#567) 2023-05-21 15:51:59 +00:00
Jeff Dickey 19cf8841f7 added RTX_ALWAYS_KEEP_INSTALL setting (#523) 2023-05-01 15:16:37 +00:00
Jeff Dickey c620bc1851 nodejs GA (#503) 2023-04-22 13:05:50 -05:00
Jeff Dickey 77bb791711 shims GA (#502)
This makes shims no longer only enabled in experimental mode. It also removes the ability to set a custom shims_dir.

Fixes #478
2023-04-22 12:23:33 -05:00
Jeff Dickey 1eb2cc2f12 node v20 (#495) 2023-04-19 23:33:33 +00:00
Jeff Dickey 72b625f61f test: improve coverage (#444)
* test .node-version parsing

I think this is not always being called due to flaky coverage
on parse_legacy_file. This should always cause that code path
to get hit

* added test for tool_version_list

* wip

* Squashed 'test/data/plugins/tiny/' content from commit 2cd6716

git-subtree-dir: test/data/plugins/tiny
git-subtree-split: 2cd6716c5fbb7bb92c3bd2f681d16aba5141c91e

* added env var to fail tiny list-all in tests

* added test for tiny failure

* added list-legacy-filenames script for tiny

* added test for tiny legacy file

* improve e2e testing
2023-04-08 14:57:20 -05:00
Jeff Dickey b9245e2724 test: fix flaky coverage (#417)
* test: add test for legacy file parsing

* test: add coverage for invalid escape sequence

prevents flaky coverage reports
2023-03-27 11:59:35 -05:00
Jeff Dickey 272f899761 feat: added rtx.plugin.toml (#385)
This is a new config for plugins. For now, it just
serves 1 purpose which is adding a cache-key to bin/exec-env

Fixes #355
Fixes #328
2023-03-23 22:30:23 +00:00
issmo ec2028d605 bug: fix environment variables escaping (#288) (#295)
* bug: fix environment variables escaping (#288)

Fixes #288

* refactor

* more test cases

* chore: removed codecov.yml

did not seem to do actually anything

---------

Co-authored-by: Jeff Dickey <216188+jdxcode@users.noreply.github.com>
2023-03-11 16:22:27 -06:00
Jeff Dickey de4d4a17b9 Merge commit '92a56122894dab737ce15bc3c866049fbd15cab7' as 'test/data/plugins/tiny' 2023-03-06 13:51:42 -06:00
Jeff Dickey 0ac40dda1a chore: removed non-subtree tiny 2023-03-06 13:51:24 -06:00
Jeff Dickey 1e0438c367 make config.toml the same as .rtx.toml (#250) 2023-03-03 02:25:29 -06:00
Jeff Dickey 5484be96fa editing support for .rtx.toml (#248) 2023-03-03 00:01:47 -06:00
Jeff Dickey ba4b3ff06f feat: added .rtx.toml (#241) 2023-03-01 17:20:55 -06:00
Chad Crawford cfc72f337d feat: add Nix flake (#239)
* Add Nix flake.

* Fixes for unit tests to pass.

* Fix paths, add explicit build inputs.

* Update flake, add devShell

* Remove cargoHash, add cargoLock instead.

* Add Cargo.toml release command to update version in default.nix; add editorconfig.

Add .editorconfig since `shfmt` will use one in a parent directory if set.

Update `flake.nix` with some more env stuff to make the dev shell work out of the box.

* Update overlay to be a simpler overlay at the root of the flake.

* Update README.md

---------

Co-authored-by: Jeff Dickey <216188+jdxcode@users.noreply.github.com>
2023-03-01 16:46:57 +00:00
Jeff Dickey 5c26bf3bd4 bug: disable stdin by default unless RTX_RAW=1 (#229) 2023-02-28 03:47:08 +00:00
Jeff Dickey 1c39589d45 docs: reference node-18 not node-20 (#219)
node-20 will not be out for a few months.

Fixes #218
2023-02-27 00:41:11 +00:00
Jeff Dickey fd87ce4690 feat: experimental shims support (#213) 2023-02-26 15:51:55 -06:00
Jeff Dickey 9e9db18f30 bug: fix multiline env vars (#212)
Fixes #210
2023-02-26 13:47:21 -06:00
Jeff Dickey 0be10f906c test: added test for tool_version resolve failure 2023-02-25 15:04:43 -06:00
Jeff Dickey 5e7de6f0cb test: move test directories to test/data (#202) 2023-02-25 19:46:26 +00:00