Skip to content
Merged
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
8 changes: 4 additions & 4 deletions src/cli/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ function parseAppSpec(input) {
* Resolve a `--bundle` source string to either a fully-qualified URL
* or an absolute local-file path.
*
* --bundle media → github.com/solid-apps/bundles/main/media.jsonld
* --bundle <org>/<repo> → github.com/<org>/<repo>/main/bundle.jsonld
* --bundle media → github.com/solid-apps/bundles/HEAD/media.jsonld
* --bundle <org>/<repo> → github.com/<org>/<repo>/HEAD/bundle.jsonld
* --bundle https://... → as-is (must end in a JSON-LD doc)
* --bundle ./path or /abs/path → absolute local-file path
*
Expand All @@ -118,12 +118,12 @@ function resolveBundleSource(input) {
if (cleaned.split('/').length !== 2) {
return { error: 'expected <org>/<repo> shorthand for bundle source' };
}
return { url: `https://raw.githubusercontent.com/${cleaned}/main/bundle.jsonld` };
return { url: `https://raw.githubusercontent.com/${cleaned}/HEAD/bundle.jsonld` };
}
if (!/^[a-z0-9][a-z0-9_.-]*$/i.test(input)) {
return { error: `invalid bundle name "${input}"` };
}
return { url: `https://raw.githubusercontent.com/solid-apps/bundles/main/${input}.jsonld` };
return { url: `https://raw.githubusercontent.com/solid-apps/bundles/HEAD/${input}.jsonld` };
}

/**
Expand Down