-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Alpine support #6
Conversation
I guess this is because coreutils are not preinstalled on vanilla Alpine Linux |
it boils down to this assumption (not met on Alpine) - https://github.com/ema/pets/blob/master/planner_test.go#L15-L17 // Test with one package already installed
pf, err := NewPetsFile("/dev/null", "coreutils", "/etc/passwd", "root", "root", "0640", "", "")
assertNoError(t, err) |
This is because assumption for location of Line 112 in e3d78d1
pa := Chmod(pf)
if pa != nil {
t.Errorf("Expecting nil, got %v instead", pa)
}
pf.AddMode("0644")
pa = Chmod(pf)
assertEquals(t, pa.Cause.String(), "CHMOD")
assertEquals(t, pa.Command.String(), "/usr/bin/chmod 0644 /dev/null") it's indeed at |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two comments, LGTM otherwise! Thanks.
package.go
Outdated
} | ||
return nil | ||
return nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation looks off here, please use go fmt
.
package.go
Outdated
installed := NewCmd([]string{"apk", "info", "-qe", string(pp)}) | ||
_, _, err := RunCmd(installed) | ||
if err != nil { | ||
log.Printf("[ERROR] running %s: '%s'", installed, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing \n
.
please see now ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thank you!
This is just a draft. For some reasons some of tests fail on SparrowCI - https://ci.sparrowhub.io/report/1488