Comments (12)
Looks like GitHub were able to revert their offending API change - should be working again now.
from reviewdog.
It does look like they released a silent update that ignores headers for https://github.com/reviewdog/reviewdog/releases/latest
, but you can call https://api.github.com/repos/reviewdog/reviewdog/releases/latest
instead and get the JSON response.
from reviewdog.
Other projects are affected too:
https://github.com/orgs/community/discussions/45590
from reviewdog.
I don't think the issue is related to latest
disappearing. Latest appears to be a GitHub semantic that always resolves to the latest release. We can successfully navigate to the latest release for reviewdog: https://github.com/reviewdog/reviewdog/releases/latest
I wonder if GitHub has released a change that ignores the Accept:application/json
header for requests to https://github.com
. The script may need to be updated to use the API endpoint directly, e.g. https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#get-the-latest-release
from reviewdog.
Looking at the reviewdog install script, it looks like it tries to make a request kind of like this (depending on if you specify a tag, wget may also be used):
curl -w '%{http_code}' -sL -H "Accept:application/json" -o ./tmp.html 'https://github.com/reviewdog/reviewdog/releases/v0.14.1'
Running that command locally for me though returns html and not json. I think that's why we're seeing this line in your output:
2023-01-27T23:16:28.9464292Z �[0m�[91mreviewdog/reviewdog info found version: <!DOCTYPE html> <html lang= for <!DOCTYPE html> <html lang=/Linux/x86_64
Not sure why the accept header isn't working though.
from reviewdog.
Any estimates when the fix will be available?
from reviewdog.
I'm seeing this failing again, though the cause might be different:
::group::🐶 Installing reviewdog ... https://github.com/reviewdog/reviewdog
🐶 Installing reviewdog ... https://github.com/reviewdog/reviewdog
reviewdog/reviewdog info checking GitHub for tag 'v0.14.1'
reviewdog/reviewdog info found version: 0.14.1 for v0.14.1/Linux/x86_64
reviewdog/reviewdog info installed /tmp/tmp.BakvtHCtrY/reviewdog
::endgroup::
::group:: Running `npm install` to install eslint ...
Running `npm install` to install eslint ...
up to date, audited 1927 packages in 7s
201 packages are looking for funding
run `npm fund` for details
3 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
::endgroup::
/home/runner/work/_actions/reviewdog/action-eslint/v1/script.sh: 20: Unknown: not found
eslint version:
::group:: Running eslint with reviewdog 🐶 ...
Running eslint with reviewdog 🐶 ...
/home/runner/work/_actions/reviewdog/action-eslint/v1/script.sh: 23: Unknown: not found
reviewdog: parse error: failed to unmarshal rdjson (DiagnosticResult): proto: syntax error (line 1:1): unexpected token
::endgroup::
Error: Process completed with exit code 1.
from reviewdog.
This issue can be closed out
from reviewdog.
Yeah, its as if the latest
tag disappeared:
Or are y'all seeing issues for pinned versions as well?
2023-01-27T23:34:12.0257709Z ##[group]🐶 Installing reviewdog ... https://github.com/reviewdog/reviewdog
2023-01-27T23:34:12.0258892Z finding a release for latest
2023-01-27T23:34:12.7452370Z ##[endgroup]
2023-01-27T23:34:12.7510550Z ##[error]Error: unable to find 'latest' - use 'latest' or see https://github.com/reviewdog/reviewdog/releases for details
which in the install script here https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh
corresponds to L90-93.
90 if test -z "$REALTAG"; then
91 log_crit "unable to find '${TAG}' - use 'latest' or see https://github.com/${PREFIX}/releases for details"
92 exit 1
93 fi
from reviewdog.
Any estimates when the fix will be available?
Same Q here. When to expect a fix for this?
from reviewdog.
I think my issue is actually related to: reviewdog/action-eslint#152
from reviewdog.
I agree, this has long since been resolved. 👍
from reviewdog.
Related Issues (20)
- 'github-pr-review' reporter is not making suggestion for blank line addition
- Support for Vale text linter HOT 2
- Bundle related suggestions together
- [BUG] Sarif format not working HOT 9
- fail to run reviewdog: XML syntax error on line 10: expected attribute name in element HOT 1
- 'reviewdog: .git exist but is not a directory' in submodule
- Add support for Azure Devops
- I want to konw which LLM do you uesd HOT 4
- File filter for github doesn't correctly submit comments HOT 3
- Wrong line number is sent to Bitbucket Server Code Insight Reports HOT 2
- Feature Request: Option to Disable the `"reported by reviewdog 🐶"` Prefix in Review Messages HOT 11
- New GitHub Action: terraform-validate HOT 2
- gitlab-mr-discussion fail to get diff HOT 3
- [BUG] breaks if file path contains parenthesis
- There was a lint problem running locally, but when I ran reviewdog on CI, there was no comment output HOT 1
- Logo Visibility Issue in GitHub Dark Theme
- GitHub Pull Request diff API responds with 406 — diff too large HOT 18
- github-pr-review reporter: Marks review threads as resolved if that are resolved
- ESLint - Reviewdog output missing file names
- Reviewdog reports issues in old lines instead of new ones
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 reviewdog.