JSFScan.sh icon indicating copy to clipboard operation
JSFScan.sh copied to clipboard

subjs`fails to install via install.sh

Open Atom-U opened this issue 5 months ago • 0 comments

Hello The script fails to install subjs because the command used is deprecated in modern Go versions (go get -u is no longer supported for binaries).

  1. Clone the repo and run ./install.sh
  2. Installation of subjs silently fails
  3. Running subjs returns: command not found

Expected Behavior: subjs should be installed and accessible in $PATH.

Actual Behavior: No binary is installed, and the command silently fails on Go 1.17+.

Root Cause: go get -u github.com/lc/subjs@latest is deprecated. As of Go 1.17+, the correct install syntax is:

go install github.com/lc/subjs@latest

Suggested Fix: In install.sh, replace:

go get -u github.com/lc/subjs@latest

with:

go install github.com/lc/subjs@latest

Also ensure $GOPATH/bin is added to $PATH.

Environment:

  • OS: Ubuntu / Exegol
  • Go version: 1.22.2
  • JSFScan commit: latest (May 2025)

Atom-U avatar May 08 '25 04:05 Atom-U