x/build/cmd/gomote: gettar
with a single file generates an invalid tarball
#64195
Labels
Milestone
When using
gomote gettar -dir=file
to get a single file (not a directory), it generates an invalid tarball.Getting a directory works fine, resulting in a valid tarball.
The racebuild command has code that uses
gettar
to retrieve a single file https://cs.opensource.google/go/x/build/+/master:cmd/racebuild/racebuild.go;l=526 , so I think it worked before, and regressed at some point.If we decide that getting a single file is not supported and must be directory (for racebuild that is fine, we can arrange it to do that), it should emit an error, instead of silently producing a bad tar file.
The text was updated successfully, but these errors were encountered: