-
-
Notifications
You must be signed in to change notification settings - Fork 152
doc: update compatibility and versioning information #10547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
olblak
wants to merge
1
commit into
main
Choose a base branch
from
olblak-patch-2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+71
−0
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| # Versioning and stability | ||
|
|
||
| Updatecli does not break your manifests on purpose. When something needs to change, the old | ||
| syntax is deprecated and keeps working. It is never removed without a year of warning. | ||
|
|
||
| ## Semantic versioning | ||
|
|
||
| Updatecli uses [SemVer-style](https://semver.org/) version numbers with an extended compatibility policy. Deprecated manifest syntax and CLI flags may be removed in minor releases after at least 12 months of notice. | ||
|
|
||
| | Bump | Means | | ||
| |---|---| | ||
| | Minor | New plugins, new fields, new flags. May also drop a syntax that has been deprecated for over a year (see below). | | ||
| | Patch | Bug fixes. | | ||
| | Major | Reserved for a redesign of Updatecli itself. Routine deprecation removals do not need one. | | ||
|
|
||
| Upgrading is safe as long as your manifests do not rely on syntax listed on the | ||
| [deprecations page](https://www.updatecli.io/docs/help/deprecations/). | ||
|
|
||
| ## What is stable | ||
|
|
||
| Two surfaces are covered by this promise: | ||
|
|
||
| * **The manifest API**: top level keys, resource `kind` names, their spec fields, the meaning | ||
| of their values, and the templating functions available in a manifest. | ||
| * **The CLI**: command names, flag names and their behaviour, and `UPDATECLI_*` environment | ||
| variables. | ||
|
|
||
| The manifest API is the project's first priority. A manifest that works today is expected to | ||
| keep working. | ||
|
|
||
| ## What is not stable | ||
|
|
||
| * **The Go code** (`github.com/updatecli/updatecli/pkg/...`). It is public because Go offers no | ||
| other way to structure a program, not because it is an API. Packages move and signatures | ||
| change in any release. If you import Updatecli as a library, pin an exact version and expect | ||
| work on every upgrade. | ||
| * **Anything behind `--experimental`.** It may change or be withdrawn at any time. | ||
| * **Log and report output.** It is written for people to read, not for scripts to parse. | ||
|
|
||
| ## Deprecation | ||
|
|
||
| When a manifest key or a CLI flag is superseded: | ||
|
|
||
| 1. The old form keeps working and warns on every run, naming its replacement. | ||
| 2. It is listed on <https://www.updatecli.io/docs/help/deprecations/>. | ||
| 3. It stays supported for **at least 12 months** from that announcement. | ||
|
|
||
| Once both conditions are met, meaning a year has passed and the deprecation is documented, the | ||
| old form may be dropped in a regular release. A major version bump is not required for this, so | ||
| the deprecation page is the page to watch. | ||
|
|
||
| `updatecli manifest upgrade --save` rewrites most deprecated syntax for you. | ||
|
|
||
| ## Pinning | ||
|
|
||
| A manifest can declare the minimum version it needs, which turns a confusing failure on an | ||
| older binary into a clear one: | ||
|
|
||
| ```yaml | ||
| name: Example | ||
| version: '0.118.0' | ||
| sources: | ||
| #... | ||
| targets: | ||
| #... | ||
| ``` | ||
|
|
||
| ## Found a break? | ||
|
|
||
| If an upgrade breaks a manifest that worked before, it is a bug, not an intentional change. | ||
| Please open an issue with the manifest, both versions, and the output of each. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: updatecli/updatecli
Length of output: 3436
🌐 Web query:
site:updatecli.io/docs/commands/updatecli_manifest_upgrade/ updatecli manifest upgrade --in-place --save💡 Result:
<search_synthesis>
The command updatecli manifest upgrade is used to upgrade Updatecli manifest files [1]. Based on the official documentation, the --in-place flag instructs the tool to write the updated manifest back to the original file rather than outputting the results to stdout [1]. Regarding your specific command, updatecli manifest upgrade --in-place --save, please note that the --save flag is not listed as a valid or recognized option for the updatecli manifest upgrade command in the current official documentation [1]. The available flags for this command are --config (-c), --in-place (-i), --labels, and --pipeline-ids [1]. Using an unsupported flag may result in an error. To upgrade your manifest in-place, the correct usage is: updatecli manifest upgrade --in-place [1]
</search_synthesis>
<source_evidence>
Citations:
🏁 Script executed:
Repository: updatecli/updatecli
Length of output: 15507
Use the supported flag for in-place upgrades.
cmd/manifest_upgrade.goregisters--in-placebut does not register--save. Replace--savewith--in-place; otherwise Cobra rejects the command's unknown flag.🤖 Prompt for AI Agents