Local sync
Use local sync only when the user explicitly asks to refresh the local STIG development workspace and the installed stig plugin and its skills. It is not a sixth submit path: do not create commits, push, update a PhASAR pin, select a release marker, or run submit-path verification gates.
Run steps 1–4 from the stig-project root. Run the installation in step 5 from the sibling stig/ source root.
Before changing anything, confirm that
../stigand../stig-project-real-oss-templateexist and have clean working trees. Confirm that this consumer's trackedgradle.propertieshas no user changes. Stop and report any failed preflight; never stash, reset, or merge to make the sync proceed.Fetch STIG's tags, including tags created by a GitLab pipeline, and fast-forward its current branch:
git -C ../stig fetch --tags origin git -C ../stig pull --ff-only git -C ../stig tag --points-at HEAD git -C ../stig describe --tags --always --longReport the resulting commit and tag information, but do not infer the STIG version from a tag name.
Fast-forward the real OSS template's current branch:
git -C ../stig-project-real-oss-template pull --ff-onlyDo not independently rewrite the template's
stigVersion; its release pipeline owns that fallback pin, and the pull obtains any published update.Resolve the consumer's actual STIG version after the pulls:
./gradlew stigPrintVersion --console=plainSet this repository's existing
gradle.propertiesstigVersionto the exactstigVersionreported by that task, for example2.1.2-SNAPSHOT. The property is the published-plugin fallback when no sibling../stigcheckout is present. A sibling composite build overrides it, so the task output, rather than the nearest Git tag or the old pin, is authoritative.Install the refreshed plugin and all three skills from the STIG source root:
# Working directory: stig/ ./gradlew installSkill --console=plain --infoThe source-root installer packages this checkout directly; it does not need an installation command in
stig-project. The local sibling override makes this the STIG build used by the consumer version check above. An explicitlocal syncrequest authorizes this user-scoped plugin installation. Consumers without a STIG source checkout can separately use theirstigInstallSkilltask.Report the resolved version, the
stigVersionupdate, the installer result, installed directory, and content SHA-256. The skills can be used immediately in the current conversation; an IDEA restart or a new thread is not normally required. Offer the installer's verification prompt when the user wants to check a repeated SNAPSHOT update. See installation and update verification for the content check and troubleshooting when an update does not appear.
Stop after any failed fetch, pull, version check, property update, or install, and report the completed and pending steps. Do not use an unpinned fallback or bypass a failed command.