We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64dbccc commit dcb1e16Copy full SHA for dcb1e16
cmd/rofl/build/artifacts.go
@@ -119,6 +119,12 @@ func maybeDownloadArtifact(kind, uri string) string {
119
120
// extractArchive extracts the given tar.bz2 archive into the target output directory.
121
func extractArchive(fn, outputDir string) error {
122
+ resolvedOutputDir, err := filepath.EvalSymlinks(outputDir)
123
+ if err != nil {
124
+ return fmt.Errorf("unable to resolve output path: %w", err)
125
+ }
126
+ outputDir = resolvedOutputDir
127
+
128
f, err := os.Open(fn)
129
if err != nil {
130
return fmt.Errorf("failed to open archive: %w", err)
0 commit comments