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

pkgset: breaking, make default behavior :root #49

Merged
merged 1 commit into from
Mar 24, 2021
Merged

Conversation

egonelbre
Copy link
Member

This change:

  • removes :root, this is the default behavior
  • removes :noroot, and replaces it with :deps
  • adds :all, to get the previous behavior

When using the expression syntax, the first usage is often to target
all the roots and the dependenices... however most reduction need to use
:root. Effectively making the expressions longer than they need to be.

For a comparison:

X - golang.org/x/tools/...:root - github.com/xyz/...:root

After this change:

X:all - golang.org/x/tools/... - github.com/xyz/...

Arguably, the second one is easier to read and understand.

CC @rogpeppe

This change:
* removes :root, this is the default behavior
* removes :noroot, and replaces it with :deps
* adds    :all, to get the previous behavior

When using the expression syntax, the first usage is often to target
all the roots and the dependenices... however most reduction need to use
:root. Effectively making the expressions longer than they need to be.

For a comparison:

   X - golang.org/x/tools/...:root - github.com/xyz/...:root

After this change:

   X:all - golang.org/x/tools/... - github.com/xyz/...

Arguably, the second one is easier to read and understand.
@egonelbre egonelbre merged commit 8a5165e into master Mar 24, 2021
@egonelbre egonelbre deleted the remove-root branch March 24, 2021 11:51
Copy link

@rogpeppe rogpeppe left a comment

Choose a reason for hiding this comment

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

Thanks for the swift work! I have one thought...

main.go Show resolved Hide resolved
@rogpeppe
Copy link

Yeah, but somehow deps works better as a word in itself, and dependencies is definitely too long :)
If you're gonna make an alias, how about :imp ?

@rogpeppe
Copy link

rogpeppe commented Mar 24, 2021

come to that how about :import instead of :imports ? Then all the qualifiers would be singular.

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

Successfully merging this pull request may close these issues.

2 participants