Skip to content

build-cli: misleading output path after build #1030

@sekulicd

Description

@sekulicd

Summary

Running make build-cli prints a misleading build output path:

Building ark cli binary...
Building ark for darwin arm64
Version: v0.9.3-1-g9d2f1ae3
Build complete: build/ark-darwin-arm64

The message Build complete: build/ark-darwin-arm64 suggests the binary is at build/ark-darwin-arm64 relative to the repo root, but it's actually at pkg/ark-cli/build/ark-darwin-arm64.

This is because the build script (pkg/ark-cli/scripts/build) does pushd into pkg/ark-cli/ before building, so build/ is relative to that directory — not the repo root where make build-cli was invoked.

Expected behavior

The build output should print the full path (or repo-root-relative path) so the user knows where to find the binary, e.g.:

Build complete: pkg/ark-cli/build/ark-darwin-arm64

Steps to reproduce

make build-cli
ls build/ark-darwin-arm64        # No such file or directory
ls pkg/ark-cli/build/ark-darwin-arm64  # ← actual location

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