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

checker generates incorrect glob debug link #74

Open
klausenbusk opened this issue Jul 6, 2020 · 0 comments
Open

checker generates incorrect glob debug link #74

klausenbusk opened this issue Jul 6, 2020 · 0 comments

Comments

@klausenbusk
Copy link
Contributor

$ BOT_BASE_PATH=/home/foo/Hentet/cdnjs ./bin/checker show-files ../packages/packages/x/xls.json

most recent version: 1.0.1
::error file=../packages/packages/x/xls.json,line=1,col=1::No files will be published for version 1.0.1.%0A[Click here to debug your glob pattern `*.js`](https://www.digitalocean.com/community/tools/glob?comments=true&glob=%25!A(MISSING).js&matches=true&tests=LICENSE&tests=README.md&tests=package.json&tests=xls.js&tests=).%0A[Click here to debug your glob pattern `*.map`](https://www.digitalocean.com/community/tools/glob?comments=true&glob=%25!A(MISSING).map&matches=true&tests=LICENSE&tests=README.md&tests=package.json&tests=xls.js&tests=).%0A

9 last version(s):
- 1.0.0: 0 file(s) matched :heavy_exclamation_mark:
- 0.7.6: 8 file(s) matched :heavy_check_mark:
- 0.7.5: 8 file(s) matched :heavy_check_mark:
- 0.7.4-a: 8 file(s) matched :heavy_check_mark:
- 0.7.4: 8 file(s) matched :heavy_check_mark:
- 0.7.3: 8 file(s) matched :heavy_check_mark:
- 0.7.2: 8 file(s) matched :heavy_check_mark:
- 0.7.1: 8 file(s) matched :heavy_check_mark:
- 0.7.0: 8 file(s) matched :heavy_check_mark:

MISSING shouldn't be there.

The string from makeGlobDebugLink is passed to fmt.Sprintf and the string contains % so fmt.Sprintf thinks it is a format specifier.

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