-
Notifications
You must be signed in to change notification settings - Fork 184
Closes: #35 check that all capabilities were dropped, inform about non-dropped caps #45
Conversation
78f3dd9
to
4701ea8
Compare
4701ea8
to
86de3fa
Compare
@@ -0,0 +1 @@ | |||
../config |
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.
Why is there a symlink you might ask! The answer is we need the file in the tests and the executable and they are in different places and I didn't feel like writing a config for where to find the config file
@@ -176,6 +182,12 @@ | |||
version = "v1.0.0" | |||
|
|||
[[projects]] | |||
name = "github.com/stretchr/testify" |
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.
Does it really make sense to pull in testify
when it's only used here once?! Yes, because we want to rewrite all the test!
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.
FWIW, looks good to me 👍
found = true | ||
} | ||
} | ||
if found == false { |
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.
This could be if !found {
, unless there's some funky javascript-esque type conversion I don't know about?
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.
Nope I am just old-fashioned :)
In this PR we introduce the functionality to inform users about which capabilities were not dropped. There is a config file which allows users to specify the capabilities they want to drop.
#35 for reference