Command reference
stax build-source
Build a cacheable workspace source artifact
Build a cacheable workspace source artifact from a Git repo or prepared directory tree.
Usage
stax build-source ./repo
stax build-source ./repo --git-url https://github.com/acme/backend.git --commit abc123
stax build-source ./repo --sparse services/api --sparse packages/sharedOptions
| Flag | Description |
|---|---|
--git-url | Associate a Git remote URL |
--commit | Associate a specific commit hash |
--sparse | Include only specific paths (repeatable) |
Behavior
A conforming implementation SHOULD:
- Strip
.git/and other VCS metadata - Record source metadata in the source artifact config blob
- Emit a deterministic source snapshot layer