Skip to content

subjs`fails to install via install.sh #46

@Atom-U

Description

@Atom-U

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)

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