Add -baselineincludezeromajor global instruction to enable baselining for 0.x versions#7076
Add -baselineincludezeromajor global instruction to enable baselining for 0.x versions#7076
Conversation
Co-authored-by: peterkir <250545+peterkir@users.noreply.github.com>
Co-authored-by: peterkir <250545+peterkir@users.noreply.github.com>
Co-authored-by: peterkir <250545+peterkir@users.noreply.github.com>
|
Question came up during discussion:
Example:
Example: For the record: At the moment I favor 1. global switch |
|
@copilot This PR introduces a |
Co-authored-by: chrisrueger <188422+chrisrueger@users.noreply.github.com>
Done! Changed to a global The implementation now:
Commit: 4f6796f Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
|
FYI @peterkir
If you want to try the other "per package" route, we could just revert the last two commits or derive a new PR. Let's see what the build is saying. |
kwin
left a comment
There was a problem hiding this comment.
LGTM, but haven't tried it out.
Thanks. That's ok. We still have the SNAPSHOT and potential RC1 to try it out. Just some first feedback if docs and general feature description is matches the expectation. |
Baselining currently skips all packages with major version 0, per semver spec stating "0.y.z is for initial development." Users need baselining for versions [0.1.0, 1.0.0) while still excluding 0.0.x.
Changes
Configuration
INCLUDEZEROMAJORconstant for new-baselineincludezeromajorglobal instructionBaseline logic
Baseline.mismatch()now checks only newer version when-baselineincludezeromajor=true, excluding 0.0.xProjectBuilder.getBaselineJar()warns about missing baselines for 0.x when enabledTests
testMismatchForZeroMajorWhenIncludeZeroMajorEnabled- validates 0.1+ baseliningtestNoMismatchForZeroZeroVersionsEvenWithIncludeZeroMajor- validates 0.0.x exclusiontestNoMismatchForZeroMajor- validates default behavior unchangedDocumentation
-baselineincludezeromajorinstruction/docs/_instructions/_ext/baselineincludezeromajor.mddocumentation fileUsage
Default value is
falsefor backward compatibility.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.