cncf / cncf/endusers

[architect] validate-metrics.mjs has malformed shebang (missing /)

Open
#154 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

## Architecture Finding

**Type**: code-defect / script-portability
**Affected area**: `scripts/validate-metrics.mjs` — line 1

The shebang line reads:
```
#!/usr bin/env node
```
The `/` between `usr` and `bin` is missing. The correct form is `#!/usr/bin/env node`.

## Impact

- `./scripts/validate-metrics.mjs` run directly fails (the kernel cannot find the interpreter path `/usr bin/env`).
- `npm run validate:metrics` is unaffected — npm always invokes `node scripts/...` directly, so the shebang is not parsed.
- CI is working correctly. This is a script-portability defect that only surfaces when scripts are executed directly.

## Fix

```diff
-#!/usr bin/env node
+#!/usr/bin/env node
```

---
*Filed by architect agent (ACMM L5)*

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.