diff --git a/server/build.go b/server/build.go index 786d0e9c9..210c70a0b 100644 --- a/server/build.go +++ b/server/build.go @@ -1000,6 +1000,7 @@ func (task *BuildTask) resolveExternal(specifier string, kind api.ResolveKind) s args.external.Remove(pkgName) if stableBuild[pkgName] { args.alias = map[string]string{} + args.external.Reset() } importPath = task.getImportPath(pkg, encodeBuildArgsPrefix(args, pkg, false)) }