Skip to content

Commit

Permalink
Fix ArchLinux detection (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
kke committed Oct 5, 2021
1 parent 1ff00f7 commit c4b3809
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion configurer/linux/archlinux.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type Archlinux struct {
func init() {
registry.RegisterOSModule(
func(os rig.OSVersion) bool {
return os.IDLike == "arch"
return os.ID == "arch" || os.IDLike == "arch"
},
func() interface{} {
return &Archlinux{}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ require (
github.com/gofrs/uuid v4.0.0+incompatible // indirect
github.com/hashicorp/go-version v1.3.0
github.com/k0sproject/dig v0.2.0
github.com/k0sproject/rig v0.4.4
github.com/k0sproject/rig v0.4.5
github.com/logrusorgru/aurora v2.0.3+incompatible
github.com/masterzen/simplexml v0.0.0-20190410153822-31eea3082786 // indirect
github.com/masterzen/winrm v0.0.0-20210623064412-3b76017826b0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1
github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
github.com/k0sproject/dig v0.2.0 h1:cNxEIl96g9kqSMfPSZLhpnZ0P8bWXKv08nxvsMHop5w=
github.com/k0sproject/dig v0.2.0/go.mod h1:rBcqaQlJpcKdt2x/OE/lPvhGU50u/e95CSm5g/r4s78=
github.com/k0sproject/rig v0.4.4 h1:Wj7+BIKVhzhRau6Ht66zJXebBxnQc/7K8if2oeAF5K8=
github.com/k0sproject/rig v0.4.4/go.mod h1:4FKfoqz5HOE8v8pJ0K8BCvWw3ypB2vJINkAY4P+yTpo=
github.com/k0sproject/rig v0.4.5 h1:9qTHqjD9YSEFNUa5GoU4BdS9k3rCeZ0tTHNJZe64aBI=
github.com/k0sproject/rig v0.4.5/go.mod h1:4FKfoqz5HOE8v8pJ0K8BCvWw3ypB2vJINkAY4P+yTpo=
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs=
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
Expand Down

0 comments on commit c4b3809

Please sign in to comment.