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

Function variantTagFromVersion

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

Source from the content-addressed store, hash-verified

756 * publishing them doesn't move the channel pointer. The wrapper alone
757 * drives `latest`/`beta`. */
758const variantTagFromVersion = (version: string): string => {
759 const idx = version.indexOf("-");
760 if (idx === -1) {
761 throw new Error(
762 `Variant version missing platform-tag suffix (expected '<base>-<tag>'): ${version}`,
763 );
764 }
765 return version.slice(idx + 1);
766};
767
768const publish = async (channel: string) => {
769 const meta = await readMetadata();

Callers 1

publishFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected