Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Generated from private documentation source. Do not edit directly. Source SHA256: 732bd5b37ae4c4deadc896260dfdad561d7f97f93f5e2542c0a248aa06986cc9 -->
<!-- Generated from private documentation source. Do not edit directly. Source SHA256: 9dfac4416715ed4e7103162e5b3a40a2534c1043834463e627698f0dce148ad6 -->

# GDAM

Expand Down Expand Up @@ -169,6 +169,14 @@ When `gdam.json` has changed it re-resolves and rewrites the lock;
`gdam install --frozen-lockfile` fails instead, which is what CI should run.
Commit the lock.

Starting with v0.1.2, verified downloads populate a digest-addressed archive
cache. Use `gdam install --cache-dir /path/to/cache` to fill an explicit cache
while online, then `gdam install --offline --cache-dir /path/to/cache` to restore
from it without contacting the registry or GitHub. Offline mode requires a
matching frozen lock and rechecks every archive digest; a missing, modified or
linked cache entry fails. It cannot discover newer releases or verify current
remote release metadata.

`gdam update @owner/addon@<tag>` moves one pin and re-resolves; it is the same
command as `gdam add`.

Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func runInstall(args []string) int {
return 2
}
if fs.NArg() != 0 {
fmt.Fprintln(os.Stderr, "usage: gdam install [--frozen-lockfile]")
fmt.Fprintln(os.Stderr, "usage: gdam install [--frozen-lockfile] [--offline] [--cache-dir DIR]")
return 2
}

Expand Down Expand Up @@ -311,7 +311,7 @@ Usage:
gdam init
gdam add @username/addon[@tag]
gdam update @username/addon@tag
gdam install [--frozen-lockfile]
gdam install [--frozen-lockfile] [--offline] [--cache-dir DIR]
gdam publish @username/addon TAG [ASSET_NAME]
gdam remove @username/addon
gdam link @username/addon [local_path]
Expand Down
Loading