Skip to content

Commit

Permalink
always update roles when version is 'main' or 'master'
Browse files Browse the repository at this point in the history
  • Loading branch information
aine-etke committed Aug 18, 2024
1 parent 2d00c23 commit c5ee3fe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/models/entries.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ import (
"github.com/etkecc/agru/internal/utils"
)

var forcedVersions = map[string]bool{
"main": true,
"master": true,
}

// GalaxyInstallInfo is meta/.galaxy_install_info struct
type GalaxyInstallInfo struct {
InstallDate string `yaml:"install_date"`
Expand Down Expand Up @@ -94,5 +99,9 @@ func (e *Entry) IsInstalled(rolesPath string) bool {
if e.Version != e.GetInstallInfo(rolesPath).Version {
return false
}

if forcedVersions[e.Version] {
return false
}
return true
}

0 comments on commit c5ee3fe

Please sign in to comment.