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

new DSL form container :nested => <inner> #6120

Merged
merged 1 commit into from
Sep 11, 2014

Conversation

rolandwalker
Copy link
Contributor

Note: tests will probably not pass until #6118 is merged, and may conflict with that PR.

Like #6068, this is a new form intended for inclusion in DSL 1.0, but which was
overlooked during planning in #4688.

As with #6068, implementing container :nested now means we would not have the
benefit of the forward-compatibility transition code. However, nested_container is
only used in 38 Casks in the main repo, so that is unlikely to cause a problem in practice.

The gain is consolidating two stanzas: container_type and nested_container are both
handled by container. For a first-time Cask author, that seems more logical and regular.

We do lose the extensibility of nested_container, since :nested can only take a single
value. However, it is unlikely that extensibility is needed, and there are workarounds.

@rolandwalker rolandwalker mentioned this pull request Sep 11, 2014
9 tasks
rolandwalker added a commit that referenced this pull request Sep 11, 2014
new DSL form container :nested => <inner>
@rolandwalker rolandwalker merged commit 80d44d4 into Homebrew:master Sep 11, 2014
@rolandwalker rolandwalker deleted the container_nested branch September 11, 2014 13:55
@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant