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

feat: experimental command line flag to print the dependency tree #577

Merged
merged 1 commit into from
Jun 13, 2019

Conversation

kyegupov
Copy link
Contributor

@kyegupov kyegupov commented Jun 12, 2019

  • Ready for review
  • Follows CONTRIBUTING rules
  • Reviewed by Snyk internal team

What does this PR do?

Experimental undocumented flag --print-dependencies for snyk test, useful for debugging.

image

Sorry, something went wrong.

@kyegupov kyegupov self-assigned this Jun 12, 2019
@kyegupov kyegupov requested a review from miiila June 12, 2019 16:16
@@ -255,6 +266,9 @@ async function assembleLocalPayloads(root, options): Promise<Payload[]> {

for (const depRoot of deps.depRoots) {
const pkg = depRoot.depTree;
if (options['print-dependencies']) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can I ask for print-deps instead? And have it appear in our help text? 🙏

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, changed it to be supported in both test and monitor.
I'd rather not make it a stable feature, so marked as "experimental" in help.
Probably it should be a separate command.

@kyegupov kyegupov force-pushed the feat/print-dep-tree-experimental branch 2 times, most recently from 961c358 to a0fc845 Compare June 13, 2019 10:49

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@kyegupov kyegupov force-pushed the feat/print-dep-tree-experimental branch from a0fc845 to c431bc4 Compare June 13, 2019 10:54
@miiila
Copy link
Contributor

miiila commented Jun 13, 2019

@kyegupov If it's not a big issue, I'd vote for a separate command as well. I believe that sorting out all the things like snyk test --json --print-deps would be too hard. If it is more complicated, I'm happy with experimental flag :-)

@miiila
Copy link
Contributor

miiila commented Jun 13, 2019

@kyegupov you handle options.json already... 👏

@kyegupov kyegupov merged commit 352e8fb into master Jun 13, 2019
@kyegupov kyegupov deleted the feat/print-dep-tree-experimental branch June 13, 2019 13:24
@snyksec
Copy link

snyksec commented Jun 13, 2019

🎉 This PR is included in version 1.178.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants