oxidecomputer / oxidecomputer/oxide.rs

CLI can't be built if .git is missing (e.g. downloaded zip)

Open
#188 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
75
Forks
21
Avg merge
2d 2h
Merged PRs (30d)
19

Description

https://github.com/oxidecomputer/oxide.rs/blob/4d5d22804a092868f1ac5f73c5259db517b9b89e/cli/build.rs#L9-L13

This will eventually be a pain for downstream distribution packagers.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with cli/build.rs at lines 9-13 and reproduce the CLI build from a downloaded source archive without a .git directory. Done means the CLI builds successfully in that environment and the downstream-packaging case no longer depends on repository metadata.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.