Skip to content

Commit

Permalink
Libraries should be installed in a folder without a version name
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Feb 23, 2018
1 parent 41630c1 commit 0367c26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions commands/lib/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
package lib

import (
"fmt"
"os"
"path/filepath"

Expand Down Expand Up @@ -100,7 +99,7 @@ func runInstallCommand(cmd *cobra.Command, args []string) {
Error: err.Error(),
}
} else {
outputResults.Libraries[i].Path = filepath.Join(folder, fmt.Sprintf("%s-%s", item.Name, item.Release.VersionName()))
outputResults.Libraries[i].Path = filepath.Join(folder, item.Name)
}
}

Expand Down
3 changes: 1 addition & 2 deletions libraries/install_uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ package libraries
import (
"archive/zip"
"errors"
"fmt"
"os"
"path/filepath"

Expand Down Expand Up @@ -101,6 +100,6 @@ func removeRelease(libName string, r *Release) error {

libName = strings.Replace(libName, " ", "_", -1)

path := filepath.Join(libFolder, fmt.Sprintf("%s-%s", libName, r.Version))
path := filepath.Join(libFolder, libName)
return Uninstall(path)
}

0 comments on commit 0367c26

Please sign in to comment.