ci(publish): auto-confirm opam publish via OPAMCONFIRMLEVEL=unsafe-yes - #291
Merged
Merged
Conversation
opam-publish's confirm checks whether stdin is a tty; in CI it is not, so the
previous `yes |` pipe (and OPAMYES) were ignored and it auto-answered "no"
("Please confirm the above data. Continue ? [Y/n] n"), so no coq/opam PR was
opened though the package run was green and the tarball attached.
OPAMCONFIRMLEVEL=unsafe-yes is opam's documented non-interactive mechanism:
it auto-answers every confirmation without reading input. Drop the `yes |`
pipe (and its pipefail dance) in favor of it.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F8u1xnYFQ8MyQ3mE8z35dU
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
The
spatial-algebra-v0.1.2/robust-predicates-v0.1.1releases were green and their tarballs attached, but thecoq/opamPRs did not open. Logs show opam-publish auto-answered no:opam-publish's confirm checks whether stdin is a tty; in CI it isn't, so the piped
yes(andOPAMYES) were ignored and it defaulted to no.Fix
Use opam's documented non-interactive mechanism,
OPAMCONFIRMLEVEL=unsafe-yes, which auto-answers every confirmation without reading input. Drops theyes |pipe and itspipefailhandling.State / honesty
*-v0.1.3/*-v0.1.2) runs the corrected path. (A manual one-liner can also open them immediately from the attached tarballs.)🤖 Generated with Claude Code
Generated by Claude Code