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

*: print-deps prints file of user's choice or by top-level file; remove --as-file #1819

Merged
merged 1 commit into from
Aug 15, 2019

Conversation

estroz
Copy link
Member

@estroz estroz commented Aug 13, 2019

Description of the change:

  • remove --as-file, which is now default behaviour
  • add --dep-manager so users can specify which type of file to print (default behavior is still old behavior)

Motivation for the change: current print-deps without --as-file errors because our module files contain non-versions like master. These lines would need to be removed from the modfile's bytes and added back after parsing, a messy (and high LOC) process all for an output that is likely used less than that from --as-file.

--dep-manager is a nice-to-have in case someone wants to switch dependency managers or loses their manager file somehow.

Closes #1810

@estroz estroz added the kind/feature Categorizes issue or PR as related to a new feature. label Aug 13, 2019
@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 13, 2019
Copy link
Contributor

@hasbro17 hasbro17 left a comment

Choose a reason for hiding this comment

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

LGTM after nit.

Copy link
Member

@jmrodri jmrodri left a comment

Choose a reason for hiding this comment

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

I agreed with Haseeb's comment but all in all, looks good. I won't hold up the PR for such a minor nit.

cmd/operator-sdk/printdeps/cmd.go Show resolved Hide resolved
Copy link
Member

@joelanford joelanford left a comment

Choose a reason for hiding this comment

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

LGTM

@estroz estroz merged commit b4e5306 into operator-framework:master Aug 15, 2019
@estroz estroz deleted the print-deps-remove-as-file branch August 15, 2019 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to migrate to modules for operator project that uses dep?
5 participants