You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(component): add refresh-upstream-commit for lock-file-free mode
Register the component commands that maintain resolved state according to
the selected mode. The default mode keeps history, query, and update; the
lock-file-free mode instead gets refresh-upstream-commit, which resolves
each selected upstream component at the distro snapshot and records the
result as generated component TOML, plus hidden no-op stand-ins for the
lock-file commands so existing invocations report that they do nothing.
Because a stale generated pin can make strict configuration loading fail,
the refresh command is annotated to load configuration permissively, and
commands can now be excluded from generated Markdown docs so the no-op
stand-ins stay out of the reference documentation.
Component commands take construction options so that lock-file-only flags,
such as '--skip-lock-validation', are simply not registered in
lock-file-free mode instead of being accepted and ignored. Both modes are
exercised by unit tests, including a lock-file-free test environment.
Refs: microsoft#323
0 commit comments