Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Closes: #35 check that all capabilities were dropped, inform about non-dropped caps #45

Merged
merged 1 commit into from
Oct 30, 2017

Conversation

klautcomputing
Copy link
Contributor

@klautcomputing klautcomputing commented Oct 23, 2017

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

@@ -0,0 +1 @@
../config
Copy link
Contributor Author

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"
Copy link
Contributor Author

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!

@klautcomputing klautcomputing changed the title [WIP] Implements: #35 check that all capabilities were dropped Closes: #35 check that all capabilities were dropped, inform about non-dropped caps Oct 30, 2017
Copy link

@skyhelix skyhelix left a 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 {

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?

Copy link
Contributor Author

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 :)

@klautcomputing klautcomputing merged commit 9dc109d into master Oct 30, 2017
@jinankjain jinankjain deleted the capability-drop-list branch November 1, 2017 20:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants