Skip to content

dev/llgo.sh skips go install -tags=dev #1518

@cpunion

Description

@cpunion

Summary

dev/llgo.sh should always rebuild llgo with go install -tags=dev ./cmd/llgo, but at the moment the wrapper only ensures the CLI exists and runs go install ./cmd/llgo without dev tags when it thinks a rebuild is necessary.

Steps to Reproduce

  1. Run ./dev/llgo.sh version once; _llgo_ensure_llgo_cli installs llgo at $GOBIN/llgo.
  2. Without touching any files under cmd/llgo, run ./dev/llgo.sh version again.
  3. Observe that no go install is executed, so the binary executed is the previous installation, built without the dev tag.

Expected Behavior

Every invocation of dev/llgo.sh should rebuild with go install -tags=dev ./cmd/llgo so the dev build is used regardless of whether llgo is already installed.

Actual Behavior

dev/_llgo_setup.sh:38-55 only runs go install ./cmd/llgo when llgo is missing or when files in cmd/llgo are newer than the binary, so dev/llgo.sh (dev/llgo.sh:4-10) usually just reuses an existing binary that lacks the dev tag.

Additional Context

Making go install -tags=dev ./cmd/llgo unconditional in dev/llgo.sh would match the intended workflow described in the dev docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions