Comments (6)
Do you mean that you want to get a non-zero exit code when there is any error from any entry? I can add a cmdline flag if you want this behavior. It's not possible to signal which error occurs with the exit code though.
The current design is that, you filter error messages from the json log output and process them.
from nvchecker.
Do you mean that you want to get a non-zero exit code when there is any error from any entry? I can add a cmdline flag if you want this behavior. It's not possible to signal which error occurs with the exit code though.
What do you think yourself about this? Do you expect an error when something goes wrong (and it returns non-zero code) in cmd section? I think it should fail from my POV. But if you think there are situations which failing is fine, this can be a flag.
The current design is that, you filter error messages from the json log output and process them.
I think any non-zero return code is an error and there is no need to filter the output to see what has happened, if the result has changed nvchecker will notice already.
from nvchecker.
Do you expect an error when something goes wrong (and it returns non-zero code) in cmd section?
No. There are a lot of entries to check, and it's expected that some of them fail for one reason or another (e.g. network issues, upstream downtime). A non-zero status code says little about what goes wrong.
I think any non-zero return code is an error and there is no need to filter the output to see what has happened.
Well, you can raise the log level to see only warnings and errors.
from nvchecker.
No. There are a lot of entries to check, and it's expected that some of them fail for one reason or another (e.g. network issues, upstream downtime). A non-zero status code says little about what goes wrong.
What about something like any_error_fatal = true
to make nvchecker fail in case there was any failure in that section?
Can this be added so that it can be configured per software?
from nvchecker.
I can add an option to indicate errors with exit code, but it wouldn't be fatal -- there is no reason to give up other entries if one entry fails.
I'll try to come up with a patch tomorrow if it's okey for you.
from nvchecker.
I can add an option to indicate errors with exit code, but it wouldn't be fatal -- there is no reason to give up other entries if one entry fails.
I meant exactly the same thing, fatal for the entry that error has happened, feel free to change its name to whatever you see fit.
I'll try to come up with a patch tomorrow if it's okey for you.
Come up with a patch next year if you want :) I have not employed you, thanks for your time!
from nvchecker.
Related Issues (20)
- nvchecker-notify question HOT 6
- Can nvchecker use `~/.git-credentials` to get github token by default HOT 6
- Add direct sort version for cmd HOT 4
- `nvcheck -c`'s default value HOT 11
- [feature] Support luarocks
- [feature request] Return an URL representing the latest version HOT 4
- [Feature Request] Support watch update of specific docker image tag HOT 2
- [MINOR FEATURE] check that there's an internet connection HOT 1
- test_container fails HOT 2
- nvchecker returns the date of the last update instead of the real version in the version field HOT 2
- [feature] --dry-run
- Allow using both `prefix` and `from_pattern` (or document that theyโre not compatible/fail if both are defined) HOT 3
- How how to transform a variable number of matches? HOT 2
- Support netrc file HOT 1
- Issue on newver files when run with `--entry`
- Nvchecker redirects its standard output into stderr HOT 5
- How to make version 2.14 automatically remove failing entries from "newver"? HOT 1
- HTTP 599 Error HOT 4
- `taskName=Task-2` gets appended to the output of `nvchecker` HOT 1
- Print out an error when `include_regex` fails to match
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvchecker.