Repository navigation
chore(mise): drop banned runtimes and tools #154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
30190ae
14af1d3
5978b0d
d59a7c5
b731b9c
0d334e2
e0920bf
7f6c495
c4bf407
6a20fb2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # package.json is JCS-canonical (LANGUAGE-POLICY §1.4). | ||
| # Prettier must not reformat it. | ||
| package.json |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"devDependencies":{"prettier":"3.10.1"},"license":"MPL-2.0","name":"scripts","private":true} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
| # SPDX-License-Identifier: MPL-2.0 | ||
| # Kinoite Developer Environment Setup | ||
| # Uses: nerdctl, distrobox, flatpak | ||
| # Follows: Hyperpolymath Language Policy (ReScript, Deno, Rust, Gleam) | ||
| # Follows: Hyperpolymath Language Policy (AffineScript, Bun, Deno, Rust, Gleam) | ||
|
|
||
| set -euo pipefail | ||
|
|
||
|
|
@@ -295,10 +295,10 @@ starship preset pure-preset -o ~/.config/starship.toml | |
| echo "Dev toolbox ready!" | ||
| DEVEOF | ||
|
|
||
| # js (ReScript/Deno) box setup | ||
| # js (AffineScript/Deno) box setup | ||
| cat > "$HOME/scripts/toolchains/setup-js.sh" << 'JSEOF' | ||
| #!/usr/bin/env bash | ||
| # ReScript + Deno environment (Hyperpolymath primary stack) | ||
| # AffineScript + Deno environment | ||
| set -euo pipefail | ||
|
|
||
| # Deno (primary runtime per language policy) | ||
|
|
@@ -311,19 +311,22 @@ export PATH="$DENO_INSTALL/bin:$PATH" | |
| # Verify | ||
| deno --version | ||
|
|
||
| # ReScript via Deno | ||
| cat > ~/.local/bin/rescript << 'EOF' | ||
| #!/bin/sh | ||
| exec deno run --allow-read --allow-write --allow-env --allow-run --allow-net npm:rescript "$@" | ||
| EOF | ||
| chmod +x ~/.local/bin/rescript | ||
| # AffineScript compiler, built from source with opam and dune | ||
| sudo dnf install -y opam bubblewrap git | ||
| opam init --bare -y | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Make the compiler available after setup exits. For a fresh profile, Dune installs the executable under the switch prefix, but the repository's shell configuration does not add that switch to Provide persistent switch activation or install a launcher on the existing
|
||
| opam switch create affinescript 5.2.0 -y || true | ||
| eval "$(opam env --switch=affinescript)" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Select the switch for subsequent opam commands. If the invoking shell exports Line 321 then installs dependencies into
|
||
| mkdir -p ~/src | ||
| [ -d ~/src/affinescript ] || git clone --depth 1 https://github.com/hyperpolymath/affinescript ~/src/affinescript | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pin the compiler source before building it. On a fresh installation, this command selects the current default-branch commit. Line 321 then builds and installs that mutable source. Reusing an existing directory also bypasses any revision check. Pin an approved commit SHA and verify the checkout before building. Reject a mismatched existing checkout without overwriting local changes. The security requirements in
|
||
| (cd ~/src/affinescript && opam install . --deps-only --yes && dune build @install && dune install) | ||
| affinescript --version || true | ||
|
|
||
| # Useful Deno tools | ||
| deno install --allow-read --allow-write --allow-env --allow-net --allow-run -gf --name=fresh https://deno.land/x/fresh/init.ts | ||
| deno install --allow-read --allow-write --allow-env --allow-net --allow-run -gf jsr:@anthropic-ai/claude-code | ||
|
|
||
| echo "ReScript + Deno environment ready!" | ||
| echo "Remember: NO npm/node/bun in production (per language policy)" | ||
| echo "AffineScript + Deno environment ready!" | ||
| echo "Remember: Bun first; Deno, pnpm, npm as fallbacks; no Node.js or yarn (per language policy)" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When a user follows the documented Useful? React with 👍 / 👎. |
||
| JSEOF | ||
|
|
||
| # rust box setup | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When
repo_auditor.exsscans a repository using one of the newly allowed fallbacks, its unchanged runtime checks still reportpackage-lock.jsonas a violation requiring migration to Deno and report legacybun.lockbas a warning because Deno is supposedly preferred (repo_auditor.exs:70-71). Those results now contradict this Bun-first policy, so the auditor will give users obsolete remediation for otherwise permitted runtime choices.Useful? React with 👍 / 👎.