MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / variantTagFromVersion

Function variantTagFromVersion

apps/cli/src/build.ts:780–788  ·  view source on GitHub ↗
(version: string)

Source from the content-addressed store, hash-verified

778 * publishing them doesn't move the channel pointer. The wrapper alone
779 * drives `latest`/`beta`. */
780const variantTagFromVersion = (version: string): string => {
781 const idx = version.indexOf("-");
782 if (idx === -1) {
783 throw new Error(
784 `Variant version missing platform-tag suffix (expected '<base>-<tag>'): ${version}`,
785 );
786 }
787 return version.slice(idx + 1);
788};
789
790const publish = async (channel: string) => {
791 const meta = await readMetadata();

Callers 1

publishFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected