Skip to content
Snippets Groups Projects
Commit b80b5350 authored by Bensong Liu's avatar Bensong Liu
Browse files

bug fix

parent 755100c1
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ import ( ...@@ -10,7 +10,7 @@ import (
// Some options here. Would be improved in beta release. // Some options here. Would be improved in beta release.
const DEDUCT_PKGNAME_FROM_VARNAME = true const DEDUCT_PKGNAME_FROM_VARNAME = true
const USE_PROJECT_NETVER_INSTEAD_OF_HINTPATH_NETVER = false const USE_PROJECT_NETVER_INSTEAD_OF_HINTPATH_NETVER = false
const OPENXT_VERSION = "1.2" const OPENXT_VERSION = "1.2-2"
func print_help_and_exit() { func print_help_and_exit() {
println("Usage: openxt <subcommand> [options...]") println("Usage: openxt <subcommand> [options...]")
......
...@@ -64,7 +64,8 @@ func SyncPackages(nugetConfigPath, localRepoPath string, allDeps []dependencyIte ...@@ -64,7 +64,8 @@ func SyncPackages(nugetConfigPath, localRepoPath string, allDeps []dependencyIte
// | // |
// The pkgName is case in-sensitive. // The pkgName is case in-sensitive.
func GetPackagePathFromName(localRepoPath, pkgName, targetNetVer string) (pkgPath string, err error) { func GetPackagePathFromName(localRepoPath, pkgName, targetNetVer string) (pkgPath string, err error) {
guessBase := localRepoPath + string(os.PathSeparator) + strings.ToLower(pkgName) realPkgName, _ := extractPostfixPkgVerFromPkgName(pkgName) // pkgName with pkgVer would be discarded, and be guessed again.
guessBase := localRepoPath + string(os.PathSeparator) + strings.ToLower(realPkgName)
files, err := ioutil.ReadDir(guessBase + string(os.PathSeparator)) files, err := ioutil.ReadDir(guessBase + string(os.PathSeparator))
if err != nil { if err != nil {
return return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment