Skip to content
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

Skip console confirmation if ctanupload is set true in config.lua #265

Open
muzimuzhi opened this issue Jan 14, 2023 · 0 comments
Open

Skip console confirmation if ctanupload is set true in config.lua #265

muzimuzhi opened this issue Jan 14, 2023 · 0 comments

Comments

@muzimuzhi
Copy link
Contributor

muzimuzhi commented Jan 14, 2023

Currently, when using l3build upload to upload a package to CTAN, console confirmation is mandatory hence not skippable. This prohibits scripts from uploading to CTAN automatically. This feature, though dangerous and perhaps not recommended, is requested by pgf workflow main.yml.

Since ctanupload has partially exposed to config.lua (partially because not documented yet), I suggest to skip console confirmation if ctanupload is set true, if you decide to allow automatic uploading.

if options["dry-run"] then
ctanupload = false
end
-- if ctanupload is nil or false, only validation is attempted
-- if ctanupload is true the ctan upload URL will be used after validation
-- if upload is anything else, the user will be prompted whether to upload.
-- For now, this is undocumented. I think I would prefer to keep it always set to ask for the time being.

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

No branches or pull requests

1 participant