Skip to content

Conversation

@mise-en-dev
Copy link
Collaborator

@mise-en-dev mise-en-dev commented Nov 18, 2025

📦 Registry

🚀 Features

  • (exec) ensure MISE_ENV is set in spawned shell when specified via -E flag by @ceelian in #7007

🐛 Bug Fixes

  • (fig) resolve __dirname error in ES module by @jdx in #7021
  • (go) Don't allow auto mod=vendor mode by @mariduv in #7006
  • (nushell) test use not source, fix pipeline parse error by @jokeyrhyme in #7013
  • (tasks) make file paths relative to config location and templateable by @halms in #7005

Chore

  • (deny) add exclusion for number_prefix by @jdx in e955ecb

New Contributors

📦 Aqua Registry Updates

New Packages (2)

Updated Packages (1)

@mise-en-dev mise-en-dev force-pushed the release branch 2 times, most recently from 646a0ee to ddb5eb5 Compare November 18, 2025 23:41
@github-actions
Copy link

github-actions bot commented Nov 18, 2025

Hyperfine Performance

mise x -- echo

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%

@mise-en-dev mise-en-dev force-pushed the release branch 3 times, most recently from 0609da9 to dc56c49 Compare November 19, 2025 23:46
@jdx jdx enabled auto-merge (squash) November 19, 2025 23:47
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 <[email protected]>
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 <[email protected]>
@jdx jdx merged commit 56f3a6e into main Nov 20, 2025
44 checks passed
@jdx jdx deleted the release branch November 20, 2025 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants