-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
CONTRIBUTING.md: Adding unversioned Cask info #6145
Conversation
@@ -60,6 +60,20 @@ class Vagrant < Cask | |||
end | |||
``` | |||
|
|||
And here is one for Firefox; note that it has an unversioned download (the download `url` does not contain the version number, unlike the `Vagrant-1.4.3.dmg` example above). It also suppresses the checksum with `sha256 :no_check` (necessary since the checksum will change when a new version is available). This combination of `version 'latest'` and `sha256 :no_check` is currently the preferred mechanism when an unversioned download link is available: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’ll ask you to not reference Vagrant directly, since I’ll change the example later today (as per suggestion in #4992). I’ll do it with Unity, which is a big download (that I’m currently updating). Not referring to any specific name but solely as the “example above” should also cover us in the future.
Would you mind squashing the commits in the end? |
@vitorgalvao I'm not familiar with how to squash already-pushed commits safely; I've always known that as a git no-no. Are you asking me to create a new branch and pull request? If not, a pointer to how to do it would be helpful. |
Generally, yes, but not in this case. If the commits were already merged in, it could lead to very bad results. However, the commits are, currently, only on your side, and presumably no one else is depending on your repo, meaning there won’t be any consequences of you doing it. It should be very safe; we have been requesting that of contributors for a long time, and never had a single issue. |
The docs seemed to suggest that if versioned downloads were available, to prefer them over unversioned ones. Since that's incorrect presently, I attempted to correct that (see #6126 for more details).
@vitorgalvao Ah, okay. Done (though it turns out my toolchain really didn't want me doing this "risky" thing, so I ended up using the raw git commands, which I almost never do!). |
Looks good. Thank you. |
CONTRIBUTING.md: Adding unversioned Cask info
@treyharris thanks! I agree that we should document the current situation, even as we move to change it, because that will take some time. So long as it is not a public branch, manipulating git history is fun, and makes the world a better place. I usually do so with $ git checkout <your-feature-branch>
$ git reset --soft 'HEAD^' && git commit --amend -C HEAD I have that second line as an alias in my |
@rolandwalker Thanks. I do that all the time, actually. My usual git client, Magit, offers several flavors of the latter command as one-keystroke choices:
Magit's folding mechanism (trees fold into files, which fold into diffs, which fold into hunks) also makes it just as easy to work on hunks as on files. I know how to do all these things with the raw, unporcelained Showing off Magit has actually resulted in more than one vi-using coworker switching to Emacs' Evil vim-emulation just to be able to use Magit! |
Oh, but Magit does do sanity checks before operations, which is why I had trouble earlier; it did not want me squashing across a public-push boundary! I could probably have done it with the correct sequence of resets, pushes, pulls, rebases and rewrites, but it was easier to just break out |
The docs seemed to suggest that if versioned downloads were available,
to prefer them over unversioned ones. Since that's incorrect presently,
I attempted to correct that (see #6126 for more details).