xtool/cppkg: support latest version

This commit is contained in:
xushiwei
2025-05-04 17:34:02 +08:00
parent 2e19c2013c
commit 8455ee8226
5 changed files with 53 additions and 13 deletions

View File

@@ -29,9 +29,6 @@ const (
// pkgAndVer: 7bitcoder/7bitconf@1.2.0
func Install(pkgAndVer string, flags int) {
pkgPath, ver := parsePkgVer(pkgAndVer)
if ver == "" {
panic("TODO: get latest version")
}
m, err := New("")
check(err)