Skip to content

fix: work around two geectl 0.3.1 defects that block commits and the remote target gate - #182

Merged
plusky merged 4 commits into
mainfrom
fix/4.0.2
Dec 2, 2026
Merged

plusky merged 4 commits into
mainfrom
fix/4.0.2

Conversation

@plusky

@plusky plusky commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

geectl commit refuses a .changes that ends in blank lines and the validator refuses the trim, so changes-guard now allows trimming them and the gate accepts that trim when it is the only difference from the target (geckonia/geectl#813). target-gate.sh --remote creates its scratch package from the package listing instead of a meta read that keeps answering 404 (geckonia/geectl#812). Also lets --obs-build take --target as the reference for a branch without a link, and moves the meta sync after the commit. The two workarounds go away with the geectl release that fixes them.

geectl commit and geectl changelog validate refuse a .changes that ends
in blank lines, and many packages carry them from old entries. The
insertion-only rule refused the only repair, removing them, so such a
package could be neither committed as it was nor repaired.

Empty lines removed at the very end of the committed file now pass and
are reported; a whitespace-only line, a blank line anywhere else and the
last line's own newline are still content. --amend-top and --squash-mine
see the same trimmed baseline and loosen nothing else.

After the trim, validate against the target reports the last entry as
differing from the target's. gate.sh does not judge that finding once it
has compared the target's copy, read and md5-checked for the base, and
found those blank lines the only difference below the new entries. A
base left half-built by a failed read is removed, so it excuses nothing.
…its meta

--remote read the scratch package's meta with geectl remote package-meta
and wrote one with set-package-meta. That write changes an existing
package only, so a package not yet there was never created. The read
made it worse: its route keeps answering 404 for minutes once it has
for a package, also after the package exists.

Whether the package exists now comes from geectl remote list-packages.
An absent one is created with create-package and its scmsync URL, and
the build flag is then written as before. An existing one's meta is
taken from what a set-package-meta of its title prints, so package-meta
is never asked. A write that exits 0 is no proof: the run is refused
unless the meta the write prints names the package, the scmsync asked
for and the flag.
A red build is PRE-EXISTING when the link origin, or else the stamp's
target, has it too. A home branch whose _link was removed has no origin,
and when its stamp names no other package there was nothing to compare
with: a red the devel project has identically stayed RED, and --target
was refused on an --obs-build call.

--obs-build now accepts --target PRJ[/PKG] and compares with it when
neither a link nor a stamp target gives a reference. It must be another
project than the checkout's; the matching rules are unchanged and a
failed read still excuses nothing. With a link or a stamp target the
option is named as not consulted.
geectl remote update-package-meta-from-spec reads the spec OBS holds,
not the working copy. Run before the commit, as the commit steps had
it, it synced the meta from the old spec.

The call now follows the commit, and is limited to an update that
changed URL, Summary or %description in a package whose meta is the
user's to write.
@plusky
plusky merged commit a45d5e5 into main Dec 2, 2026
5 checks passed
@plusky
plusky deleted the fix/4.0.2 branch December 2, 2026 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant