Skip to content

~/.gib/bin/gib loads code with /Users/toebean hardwired path #32

@xandermathews

Description

@xandermathews

repro

  1. started with curl...|bash mode, but as it was timing out (I repro Gib wont open the game to test it #30) before game (subnautica zero) was loaded for BepEx test, tried the ~/.gib version while looking for useful -opts, particularly a way to increase the timeout, since it appeared to be launching fine.
  2. using .gib/ version: gib /.../run_bepinex.sh /.../SubnauticaZero.app fails with:

Press enter to continue [Enter] /bin/sh: /Users/toebean/Documents/GitHub/gib/node_modules/readline-sync/lib/read.sh: No such file or directory
(this is right after the "gib will:... test that BepInEx is working" info text.)

  1. also tried caching https://cdn.jsdelivr.net/gh/toebeann/gib/gib.sh locally to add debug prints and support for non-interactive 'bepex/game' operands; still reproed the '/Users/toebean' load fail.

poking around

as https://.../gib.sh doesn't export any vars, I'm properly mystified as to how 'curl|bash' mode gets past that point of the code, but manually doing the same thing as that script's exec fails.

workaround

I solved my #30 symptoms by...

  1. letting it close and configure steam, leaving it at the "press enter to test" prompt
  2. launch steam manually
  3. let gib run test

local env

MACHTYPE=arm64-apple-darwin24
mac book pro running sequoia 15

random other note

readline-sync has been unmaintained since '22; node added a readline native lib at some point as well. exec'ing to read.sh might be avoidable these days, but since I have the above workaround, I didn't look into index.ts or any other bit of the build chain for gib binary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions