Conversation
646a0ee to
ddb5eb5
Compare
Hyperfine Performance
|
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
mise-2025.11.6 x -- echo |
18.6 ± 0.3 | 18.0 | 21.0 | 1.00 |
mise x -- echo |
18.7 ± 0.6 | 18.0 | 26.1 | 1.00 ± 0.04 |
mise env
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
mise-2025.11.6 env |
17.9 ± 0.3 | 17.4 | 21.3 | 1.00 |
mise env |
18.2 ± 0.5 | 17.6 | 23.1 | 1.01 ± 0.03 |
mise hook-env
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
mise-2025.11.6 hook-env |
18.1 ± 0.4 | 17.5 | 21.5 | 1.00 |
mise hook-env |
18.2 ± 0.2 | 17.7 | 19.2 | 1.00 ± 0.02 |
mise ls
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
mise-2025.11.6 ls |
15.7 ± 0.2 | 15.2 | 16.9 | 1.00 |
mise ls |
15.9 ± 0.3 | 15.1 | 16.8 | 1.01 ± 0.02 |
xtasks/test/perf
| Command | mise-2025.11.6 | mise | Variance |
|---|---|---|---|
| install (cached) | 106ms | 106ms | +0% |
| ls (cached) | 64ms | 64ms | +0% |
| bin-paths (cached) | 71ms | 71ms | +0% |
| task-ls (cached) | 416ms | 415ms | +0% |
0609da9 to
dc56c49
Compare
jdx
added a commit
that referenced
this pull request
Nov 20, 2025
Fix ReferenceError where __dirname is not defined in ES modules by importing fileURLToPath and calculating __dirname from import.meta.url. Also update generated mise.ts file from render task. Fixes autofix CI failure in #7010 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
3 tasks
jdx
added a commit
that referenced
this pull request
Nov 20, 2025
## Summary - Fix ReferenceError where `__dirname` is not defined in ES modules - Add ES module-compatible `__dirname` calculation using `import.meta.url` - Update generated `mise.ts` file from render task ## Problem The autofix CI job was failing in PR #7010 with: ``` ReferenceError: __dirname is not defined at main (/home/runner/work/mise/mise/xtasks/fig/addCustomGenerators.ts:150:40) ``` This occurred because `addCustomGenerators.ts` is an ES module (imported with `import`), but was using `__dirname` which is only available in CommonJS modules. ## Solution Import `fileURLToPath` from `node:url` and calculate `__dirname` from `import.meta.url`: ```typescript import { fileURLToPath } from "node:url"; const __dirname = path.dirname(fileURLToPath(import.meta.url)); ``` This provides ES module-compatible access to the current directory path. ## Test Plan - [x] Run `mise run render` to verify the fig generation works - [x] Run `mise run lint-fix` to ensure all linting passes - [x] Verify pre-commit hooks pass ## Changes - `xtasks/fig/addCustomGenerators.ts`: Add ES module-compatible `__dirname` - `xtasks/fig/src/mise.ts`: Regenerated file from render task Fixes autofix CI failure in #7010 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > <sup>[Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) is generating a summary for commit 6150ab5. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📦 Registry
🚀 Features
🐛 Bug Fixes
usenotsource, fix pipeline parse error by @jokeyrhyme in #7013Chore
New Contributors
📦 Aqua Registry Updates
New Packages (2)
blender/blenderwerf/werfUpdated Packages (1)
mas-cli/mas