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

updated duet (1.5.4.9) #20479

Merged
merged 1 commit into from
Apr 12, 2016
Merged

Conversation

tsparber
Copy link
Contributor

Changes to a cask

Editing an existing cask

  • Commit message includes cask’s name (and new version, if applicable).
  • brew cask audit --download {{cask_file}} is error-free.
  • brew cask style --fix {{cask_file}} left no offenses.

@tsparber
Copy link
Contributor Author

Updating the appcast checkpoint is hard, as manual changes get overwritten by cask-repair and cask-repair does not follow the redirect.

@adidalal
Copy link
Contributor

Pinging @vitorgalvao about cask-repair

@adidalal
Copy link
Contributor

Doesn't Duet not work, anyway? #14952

@adidalal adidalal added the awaiting maintainer feedback Issue needs response from a maintainer. label Apr 11, 2016
@vitorgalvao
Copy link
Member

cask-repair does not follow the redirect

It should. What version are you using (get it with brew info cask-repair; if you installed manually, there’s no way to know)?

@adidalal
Copy link
Contributor

Latest version reports:

• appcast is probably incorrect, as a non-200 (OK) HTTP response code was returned (302)

But what @tsparber is noting is that even if you manually edit, cask-repair will revert that edit when it rechecks after the manual edit

@vitorgalvao
Copy link
Member

Reverting the edit happens both with checkpoint: and sha256. It’s by design, as you’re not supposed to do them by hand (it’s an obtuse value that you need a computer to calculate anyway, so let the computer do all the work). For that reason I don’t intend to change that behaviour, as I believe the intent to be correct.

As for the message, it says “probably” precisely to allow some leverage. @tsparber swayed me in the past (on the script to find sparkle appcasts) on following appcast redirects, which is why cask-repair also (should be, anyway) follows them. It’s a warning, not an error, as it is just meant to ask you if you’re sure, in a way. It does not stop you submitting (not passing audit, for example, does).

So my question is if the latest version of cask-repair is really not following redirects, and hence not getting the correct checkpoint:. Making it get the correct checkpoint: automatically is the solution, not allowing manually editing it.

@vitorgalvao
Copy link
Member

Just looked at it, and cask-repair seems to be working well. The problem, though, is that the appcast url is redirecting to an old version 1.5.1.1, so no wonder no change is detected — there is none.

Which leads to the question: to what checkpoint: value are you trying to change it, @tsparber?

@vitorgalvao vitorgalvao added awaiting user reply Issue needs response from a user. and removed awaiting maintainer feedback Issue needs response from a maintainer. labels Apr 12, 2016
@tsparber
Copy link
Contributor Author

Sorry, I was a bit sloppy on this one. I'm using the latest version of cask-repair (0.23.1 as reported by brew info).
I was confused by the warning about the non-200 status code and run the command to get the checkpoint manually (from doc/.../appcast), which indeed does not follow the redirect and got me a different (wrong) checkpoint.
So cask-repair works correctly (apart from the a little bit misleading warning), the appcast.md might need an update (#20490).

Doesn't Duet not work, anyway? #14952

I does work, because it moves itself to /Application and needs to started from there. What does not work is, when a user has the --appdir set to /Application (and so a symlink exists, which does not get overwritten by the app itself). The #14952 (comment) suggests just to wait for #13201.

@vitorgalvao vitorgalvao merged commit ec4ed35 into Homebrew:master Apr 12, 2016
@tsparber tsparber deleted the cask-repair_update-duet branch April 12, 2016 15:00
chrismetcalf pushed a commit to chrismetcalf/homebrew-cask that referenced this pull request Apr 21, 2016
@adidalal adidalal removed the awaiting user reply Issue needs response from a user. label Jul 2, 2016
@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.

3 participants