Alert users that defaults are used when --config is not provided. #1352
No reviewers
Labels
No labels
FreeBSD
Kind/Breaking
Kind/Bug
Kind/Chore
Kind/DependencyUpdate
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
Windows
linux-powerpc64le
linux-riscv64
linux-s390x
run-end-to-end-tests
run-forgejo-tests
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo/runner!1352
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "gordonmessmer/runner:warn-default"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What is your motivation for this change?
Using Forgejo Runner without a configuration file is expected and supported.
If a user runs
forgejo-runner generate-config, the program will inform them that they can "just runforgejo-runner generate-config > config.yamlto generate a config file."I think it is not intuitive that
forgejo-runner registerwill create a .runner file, which is used automatically, butforgejo-runner generate-config > config.yamlwill create a configuration file that is not used automatically.Yes, of course. This PR doesn't change that, it merely prints a notice that the runner is using its default configuration.
Would
log.Infobe better for this purpose?@gordonmessmer wrote in #1352 (comment):
For context,
.runneris internal state, not configuration.So far, I don't know what the right course of action is. I agree that the current situation is not ideal. If you're interested, forgejo/forgejo-actions-feature-requests#88 gives you the boring details.
Proposal 1: Turn the warning into an info message. Then, I'm fine with merging it. But don't be surprised if it disappears again, depending on what we're going to do in this area. But feel free to complain again.
Proposal 2: Abandon this PR and wait for the big configuration change.
I like the idea of an info message to help highlight the issue for the unsuspecting. It happens frequently, and this could help identify it occasionally. 👍
3e10eb6d09cd57de7a0flog.Warn is now log.Info