GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — github: annotate build warnings by crazy-max · Pull Request #365 · docker/actions-toolkit Conversation
|
| env: | ||
| NODE_VERSION: "20" | ||
| BUILDX_VERSION: "v0.15.1" | ||
| BUILDX_VERSION: "https://github.com/docker/buildx.git#d8c9ebde1fdcf659f1fa3efa6ccc27a28b0f1564" # https://github.com/docker/buildx/pull/2551 |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
needs follow-up to bump to v0.16.0 when released
Sorry, something went wrong.
There was an error while loading. Please reload this page.
dc41dc9 to
ab12e51
Compare
| let startLine: number | undefined, endLine: number | undefined; | ||
| for (const range of warning.range ?? []) { | ||
| if (range.start.line && (!startLine || range.start.line < startLine)) { | ||
| startLine = range.start.line; | ||
| } | ||
| if (range.end.line && (!endLine || range.end.line > endLine)) { | ||
| endLine = range.end.line; | ||
| } | ||
| } | ||
| core.info(`${message} --- startLine: ${startLine}, endLine: ${endLine}`); | ||
| core.warning(message, { | ||
| title: title, | ||
| file: source, | ||
| startLine: startLine, | ||
| endLine: endLine | ||
| }); |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Was looking at showing first and last lines matching warning ranges but GitHub annotations does not seem to display that properly:
core.info returns the right startLine and endLine though:
ConsistentInstructionCasing: Command 'COPy' should match the case of the command majority (lowercase)
More info: https://docs.docker.com/go/dockerfile/rule/consistent-instruction-casing/ --- startLine: 21, endLine: 23
I will just set startLine for now and open a thread on GitHub community.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
42c7667 to
1cee406
Compare
Signed-off-by: CrazyMax <[email protected]>
Signed-off-by: CrazyMax <[email protected]>
1cee406 to
644587f
Compare
| let message = atob(warning.short).replace(/\s\(line \d+\)$/, ''); | ||
| if (warning.url) { | ||
| // https://github.com/docker/buildx/blob/d8c9ebde1fdcf659f1fa3efa6ccc27a28b0f1564/commands/build.go#L854 | ||
| message += `\nMore info: ${warning.url}`; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Wonder if this link can be made clickable by adding some markdown around it.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Opened https://github.com/orgs/community/discussions/129897
And does not work with markdown 😞 https://github.com/orgs/community/discussions/129897#discussioncomment-9886696
Sorry, something went wrong.
There was an error while loading. Please reload this page.
1fc5c48 to
644587f
Compare
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.