Skip to content

Commit

Permalink
Merge pull request #432 from sighupio/bugfix/legacy-vendor-override
Browse files Browse the repository at this point in the history
fix: override ignored
  • Loading branch information
omissis authored Sep 25, 2023
2 parents 9434828 + ad87cff commit 6ff8013
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ steps:
depends_on:
- prepare
commands:
- apk add --update binutils curl groff openssh-client openvpn
- apk add curl && apk add --upgrade curl
- apk add --update binutils groff openssh-client openvpn
# Install aws-cli
- curl -sL https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub -o /etc/apk/keys/sgerrand.rsa.pub
- curl -sLO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/$${GLIBC_VER}/glibc-$${GLIBC_VER}.apk
Expand Down
4 changes: 2 additions & 2 deletions cmd/legacy/vendor.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ func NewVendorCmd(tracker *analytics.Tracker) *cobra.Command {
cmd.Flags().StringP(
"furyfile",
"F",
"Furyfile.yml",
"Path to the Furyfile.yml file",
"Furyfile.yaml",
"Path to the Furyfile.yaml file",
)

cmd.Flags().StringP(
Expand Down
10 changes: 7 additions & 3 deletions internal/legacy/furyfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,20 @@ func (f *FuryFile) BuildPackages(prefix string) ([]Package, error) {
}

for i := range pkgs {
pkgs[i].ProviderKind = f.Provider[pkgs[i].Kind]
pkgs[i].Dir = newDir(f.VendorFolderName, pkgs[i]).getConsumableDirectory()

if pkgs[i].Version != "" {
continue
}

for k, v := range f.Versions {
if strings.HasPrefix(pkgs[i].Name, k) {
pkgs[i].Version = v

break
}
}

pkgs[i].ProviderKind = f.Provider[pkgs[i].Kind]
pkgs[i].Dir = newDir(f.VendorFolderName, pkgs[i]).getConsumableDirectory()
}

return pkgs, nil
Expand Down

0 comments on commit 6ff8013

Please sign in to comment.