Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

worker: fixed duplicated ns and ns not inherited bug #403

Merged
merged 1 commit into from
Jun 5, 2017

Conversation

KeyboardNerd
Copy link
Contributor

No description provided.

@jzelinskie
Copy link
Contributor

gotta fix the tests

@KeyboardNerd KeyboardNerd force-pushed the multiplens branch 2 times, most recently from 4b64514 to 78efc0d Compare May 31, 2017 19:48
worker.go Outdated
func detectNamespaces(name string, files tarutil.FilesMap, parent *database.Layer) (namespaces []database.Namespace, err error) {
namespaces, err = featurens.Detect(files)
nsSet := map[string]*database.Namespace{}
nsCurrent, err := featurens.Detect(files) // detect the namespaces of current layer's files
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for this comment; trailing comments in Go are usually discouraged anyways

worker.go Outdated
}

// set the layers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for this comment either, it's really clear what's happening

@jzelinskie jzelinskie merged commit ce162f5 into quay:master Jun 5, 2017
KeyboardNerd pushed a commit to KeyboardNerd/clair that referenced this pull request Feb 2, 2018
worker: fixed duplicated ns and ns not inherited bug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants