Skip to content

Fix build-binaries.sh to compile from cmd/cpm #20

Description

@jeanmachuca

What

The build-binaries.sh script uses go build . from the repo root instead of go build ./cmd/cpm. Since the main package is in cmd/cpm, this produces the wrong binary or fails to compile.

Why

  • The CI in cognitiveos-distro clones cpm and runs go build . which fails with 'no Go files in ...' because the root only has library packages
  • Developers building manually with build-binaries.sh get incorrect results

How

Change go build . to go build -o cpm ./cmd/cpm

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions