Skip to content

Commit db6f57e

Browse files
committed
fix #141 remove the file extension caused invalid package version, e.g v.1.0.0 => v1.0
1 parent d4531ab commit db6f57e

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

obj/readobj.1.16.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111
"encoding/json"
1212
"fmt"
1313
"os"
14-
"path/filepath"
1514
"strconv"
1615
"strings"
1716

@@ -156,7 +155,6 @@ func (pkg *Pkg) Symbols() error {
156155
}
157156
for _, importPkg := range r.Autolib() {
158157
path := importPkg.Pkg
159-
path = path[:len(path)-len(filepath.Ext(path))]
160158
pkg.ImportPkgs = append(pkg.ImportPkgs, path)
161159
}
162160
goArchive.entryId++

0 commit comments

Comments
 (0)