From 9fde45f6fd43817f9f9a766ecc07b4c0d6e0af51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E7=AB=9E=E5=AE=81?= Date: Thu, 8 Dec 2022 13:30:32 +0800 Subject: [PATCH] fix: accurate source --- opt.go | 1 - 1 file changed, 1 deletion(-) diff --git a/opt.go b/opt.go index 6eeae5d..e58e4cc 100644 --- a/opt.go +++ b/opt.go @@ -116,7 +116,6 @@ func Source(paths ...string) Option { func AccurateSource(base string, paths ...[]string) Option { return func(o *option) *option { - base = path.Clean(base) for _, path := range paths { o.src = append(o.src, &source{base: base, path: path}) }