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.
xcaddy build
1 parent 5734acd commit c213374Copy full SHA for c213374
cmd/xcaddy/main.go
@@ -75,6 +75,14 @@ func runBuild(ctx context.Context, args []string) error {
75
Version: ver,
76
})
77
if repl != "" {
78
+ // adjust relative replacements in current working directory since our temporary module is in a different directory
79
+ if !filepath.IsAbs(repl) {
80
+ repl, err = filepath.Abs(repl)
81
+ if err != nil {
82
+ log.Fatalf("[FATAL] %v", err)
83
+ }
84
+ log.Printf("[INFO] Resolved relative replacement %s to %s", args[i], repl)
85
86
replacements = append(replacements, xcaddy.NewReplace(mod, repl))
87
}
88
0 commit comments