Skip to content

gitserver: Extract all regular files from NPM packages

Warren Gifford requested to merge ts/npm-extract-all-regular-files into main

Created by: tsenart

Context

This PR factors out .tar.gz unpacking into its own package, based off of https://github.com/gravitational/teleport/blob/master/lib/utils/unpack.go and uses it in gitserver to unpack NPM packages.

With this change we now handle more kinds of files and skip any we don't care about rather than erroring out.

Fixes #31663 (closed)

Test plan

Unit, integration and manual testing.

Merge request reports

Loading