Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The HTML report (tarball) is composed/streamed by the hub in steps:
output.js
file which contains the analysis data.Using this method, the ReportWriter was adding the
output.js
(entry) twice in the tar. First from the static report (template) and the second generated by the hub.The tar command line seems to deal with this by overwriting the file. However the extract functionality used by browsers ignores the 2nd occurrence.
The fix is to filter out the 1st output.js when using tar.Writer.AddDir().
The
Filter
in thetar
package only supported include filtering. This PR updates thetar.Filter
to support both included and excluded patterns.Refitted and tested the /bucket.