From 80df68adf5e4f69f59660d8643bccebd64dbaa9f Mon Sep 17 00:00:00 2001 From: harveyshao Date: Sun, 19 Feb 2023 20:26:17 +0800 Subject: [PATCH] opt some --- core/code/binpack.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/code/binpack.go b/core/code/binpack.go index 915fe784..7b80d2ef 100644 --- a/core/code/binpack.go +++ b/core/code/binpack.go @@ -19,6 +19,10 @@ func _binpack_file(m *ice.Message, w io.Writer, arg ...string) { if strings.HasPrefix(arg[0], "usr/volcanos/publish/") && !strings.HasSuffix(arg[0], "/proto.js") { return } + switch path.Base(arg[0]) { + case "go.mod", "go.sum": + return + } switch arg[0] { case ice.SRC_BINPACK_GO, ice.SRC_VERSION_GO, ice.ETC_LOCAL_SHY: return