Skip to content

Commit 45aa04a

Browse files
authored
fix(release): use --output path directly for container mount (#2015)
The 'release init' command was incorrectly creating a nested 'output' subdirectory within the path provided by the --output flag (aliased to WorkRoot). This caused the container's /output volume to be mounted to <workroot>/output instead of <workroot>. This commit changes the behavior to use the r.workRoot value directly as the source for the /output volume mount, aligning with user expectations for the --output flag. Fixes #2014
1 parent d8dc3d1 commit 45aa04a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/librarian/release_init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func newInitRunner(cfg *config.Config) (*initRunner, error) {
117117
}
118118

119119
func (r *initRunner) run(ctx context.Context) error {
120-
outputDir := filepath.Join(r.workRoot, "output")
120+
outputDir := r.workRoot
121121
if err := os.MkdirAll(outputDir, 0755); err != nil {
122122
return fmt.Errorf("failed to create output dir: %s", outputDir)
123123
}

0 commit comments

Comments
 (0)