-
-
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
search
gives bad results when there are multiple casks with the same tokens across repos
#27364
Comments
Is anyone assigned to this? Or does this mean it is open to development by anyone who wants to submit a PR to close it? |
Anyone can submit a PR for this. |
In terms of hours of work invested vs. work pending, I feel the unfinished PR is pretty close to completion. By the time of my last commit (8 Dec 2014), the PR seemed feature complete but lacked a few tests. Now with two years having passed, it’s going to need a very thorough rebase on top of that. I’d definitely love to finish it myself but right now I can’t. I have published all my work in progress to the branch As @vitorgalvao said, anyone is free to work on it. Whoever wants to contribute should feel free to start from scratch – there are definitely quicker and simpler solutions than my large refactoring – or pick up my |
Just tried to rebase, ended up realizing there is no core anymore. I had completely forgotten 😳 Given the work already done was rather invasive, I can’t risk missing any relevant changes to the core while rebasing. So I really want a coherent Git history along the way. To achieve this, I’m thinking of multiple steps:
@caskroom/maintainers Any advice on a simpler solution? How did you go about similar problems in the past? |
Not really. Before moving the core we tried to merge as many core-related PRs as possible. The remaining ones were either closed due to lack of interest or merged relatively quickly afterwards. |
@reitermarkus Alright. I wonder though what would be the proper way to run any cask command from my dev working copy? Before the transition, we used to have I wonder where the equivalent thing in Homebrew is? I searched all the folders I deemed somewhat relevant, especially The consequence is that right now, I’m unable to run literally any command from my dev working copy of Homebrew. I have read all the docs – especially the three documents for maintainers – however, I have yet to find anything even remotely related to my issue, or even some kind of documentation on how to properly set up the Homebrew repo for development. Nothing has worked so far. My simplest test case is: I look at the commit hash that Speaking of test cases: not only are the I understand that I’m obviously missing something – but what is it? After one day of achieving literally nothing, I’m running out of ideas and feel really confused and frustrated. Would you mind please giving me a nudge in the right direction? |
As far as I can remember the scripts were linking the development tap to
Tests are now run with |
@reitermarkus Thanks for the pointers!
I don’t see how these two things are related. If we’re able to move a thing from A to B, how are we not able to modify those scripts to have them point to B instead of A, rather than throwing them away? That, admittedly, is a little beyond me. To explain the itch behind my question, I’m going to let you guys in on the fact that I find myself having a embarrassingly hard time getting my dev environment up and running, especially when compared to the old HBC repo. This factoid is seemingly unrelated to the discussion at hand, and it might not have anything to do with Homebrew, and might very well have everything to do with my personal attitude, learning curve, or patience. Except when it doesn’t. The thing is, I was bitten once and became shy twice. I do love Homebrew, you know. It’s a pleasure to use, and certainly an insanely convenient thing to have. I do also love To back up my claim, I just need to look at my local working copy of HBC. Not a long time ago, I used to know exactly how, and when, to Now compare to all this my stash of custom Homebrew formulae. I’ve written only a handful of those throughout the years. Nothing spectacular, and all of them for my own use. Sometimes my formulæ even have credentials in it because who cares. I used to tuck away all those formulae of mine in private branches but guess what? One day in 2015, my formulae started to disappear. My uncommitted changes? Vanish into thin air. My branches? Poof. At first, I would not notice – because whatever it is that keeps snatching my formulae, the thing loves to strike silently, probably out of spite, or maybe because it secretly longs to be a ninja. By all means, it chooses not to blow up in my face like Git does whenever it finds a hairline crack in a whitespace (but wait … didn’t Homebrew use exactly Git behind the scenes? So, weeks pass, or even months, without me noticing my formulÆ are gone, until the day there is some upstream release, and off I go and update formula XY, or so I think! Actually, I can’t update formula XY because formula XY is gone. Gone because someone decided to change the color of the magic smoke inside But now that HBC is with Homebrew, all of that has changed, I guess? No more weaseling out of staying on top of how Yes, I’m going to bite the bullet and work on the HBC core in a private branch, below Why exactly is it that we cannot keep Pinging @caskroom/maintainers for advice, consolation, or both. |
To be honest, I hadn't used these scripts before the merger, so there wasn't any incentive for me to make them work with the new setup, and nobody complained when they were gone. Also, keeping them in
I can't say anything about this since I never had any trouble with
Much of Homebrew-Cask is now intertwined with the Homebrew core, and will only get more integrated over time, so you will probably end up editing the Homebrew core anyway – |
It’s not that I’m trying to bring back this feature purely for my own convenience. Let’s put ourselves – for a moment – in the shoes of a first-time code contributor who has just cloned the repo to, say, For the record, I’m positive that whoever removed the scripts did it with the best of intentions in mind. This doesn’t change how unhappy I am with the status quo though. [1] or dev’s experience, in that instance
Lucky you. 🍀 But even in a bug-free universe, where
You’re correct; it’s not what I had in mind either. Basically, what I want to achieve here is a workflow roughly similar to what we had before the transition. To get more precise, what I’m trying to do is this:
[2] Let’s ignore the non-cask `brew xyz` commands for now. I’d be indifferent as to where those would point. [3] or whatever `$(brew --prefix)` happens to be at that moment What I’d love to do is write a script that simply does what the table says. At the moment, I have no idea how to go about that, or where to start looking for a solution. If I knew more about Homebrew, or if someone kindly helped me fill in the blanks, I would gladly implement the script myself, and then send a PR on its way. Another strategy might be to do simple symlink trickery, like the old scripts did. (If I only had an idea what precisely needs to be linked, and to which target?) If I knew, I could restore @caskroom/maintainers Any pointers? |
You know what? You could probably just simply call |
Thanks @reitermarkus, will try this right away! |
@reitermarkus The solution you suggested has worked great so far!
|
Great to hear! 👍 |
Can also attest to that. Used it for Homebrew/brew#1745. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
@claui I seem to recall some discussion not too long ago (was already 2019?) in either the Homebrew/brew or Homebrew/homebrew-core repo about this very subject, and the conclusion being that it’s best to avoid having formulae in third-party taps whose tokens conflict with the official taps. Is this issue still worth pursuing? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
@claui Started working on this in #7906, but it was never finished.
Reported issues where we can see the problem: #19114, #27360.
The text was updated successfully, but these errors were encountered: