Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

NetBSD: All functionality fails; "-S" is not a portable option to env

Cerrado
#1,418 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
64/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript, node.js
Área
build-system, cli

Línea de trabajo

Start with the fix-bundle script in package.json and the generated bin/bundle.js entry point, then reproduce npx spago build or --help on NetBSD. Check how the bundled executable invokes env and verify that the resulting package works without relying on NetBSD-unsupported -S behavior; done means Spago commands run successfully on NetBSD.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Spago 1.0.4 installed via npm fails to do anything on NetBSD:

-bash-5.3$ npx spago build
env: unknown option -- S

Usage: env [-0i] [-C dir] [-u name] [--] \
           [name=value ...] [--] \
           [utility [arg ...] ]
-bash-5.3$ npx spago --help
env: unknown option -- S

Usage: env [-0i] [-C dir] [-u name] [--] \
           [name=value ...] [--] \
           [utility [arg ...] ]
-bash-5.3$ npx spago
env: unknown option -- S

Usage: env [-0i] [-C dir] [-u name] [--] \
           [name=value ...] [--] \
           [utility [arg ...] ]

I tried the version of spago from pkg_src first, but that's the old dhall-spago instead of the current yaml-spago.

I could not find an equivalent to -S in the env(1) man page on NetBSD.

Changing the fix-bundle script in spago's package.json to a no-op, and undoing the change to spago's bin/bundle.js caused the build to succeed:

[641 of 642] Compiling Test.Main
[642 of 642] Compiling Main
           Src   Lib   All
Warnings     0     0     0
Errors       0     0     0

✓ Build succeeded.
-bash-5.3$ grep fix-bundle node_modules/spago/package.json
    "fix-bundle": ":",
    "bundle": "spago bundle -p spago-bin && npm run fix-bundle",
    "prepublishOnly": "spago build && ./bin/index.dev.js bundle -p spago-bin && npm run fix-bundle && ./bin/index.dev.js bundle -p docs-search-client-halogen",
-bash-5.3$ head -n 1 node_modules/spago/bin/bundle.js
#!/usr/bin/env node
Lenguaje dominante
PureScript
Estrellas
830
Forks
138
Merge medio
18 h 27 min
PR fusionados (30 d)
7

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de purescript/spago

Todos los issues de purescript/spago

Issues similares

Más issues de Build System

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.