Skip to content

Template Registry approval is bypassed by aio templates install/aio app init and pulls latest npm version #79

Description

@dthampy

Summary

aio templates install and aio app init install the version from npm’s latest dist-tag, not the version approved in the Template Registry.
The Template Registry’s latestVersion is only used for display in aio templates discover, not for actual installs.
This creates a mismatch where users may see one version (approved) but install a newer, unapproved version.
As a result, publishing to npm effectively bypasses the registry approval gate.

Expected Behavior

aio templates install and aio app init should install the version specified by the Template Registry’s latestVersion (i.e., the approved version).
The Template Registry should act as the source of truth and release gate for template availability.
All CLI flows (discover, install, app init) should consistently use the registry-approved version.

Possible fix

when the install spec has no explicit version (src/commands/templates/install.jssrc/lib/npm-helper.js:102), look up the template's latestVersion from the Template Registry (already used by discover.js via getTemplates() in template-registry-helper.js) and pass the version-pinned spec to npm install

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions