KEMBAR78
lsr: remove using argument by samford · Pull Request #235750 · Homebrew/homebrew-core · GitHub
Skip to content

Conversation

@samford
Copy link
Member

@samford samford commented Sep 1, 2025

  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

I added support to DownloadStrategyDetector for tangled.sh Git URLs (Homebrew/brew#20599), so the using: :git argument in the lsr formula is (or will be) redundant. This formula would normally fail brew audit as a result but the related audit is currently being skipped for lsr (it was necessary to be able to merge the related brew PR). I've created this as a draft until the aforementioned DownloadStrategyDetector change is in a brew release.

Besides that, this modifies the formula to use zig@14, as the build will fail with errors otherwise (i.e., expected function or variable declaration after pub for build.zig lines like pub usingnamespace @import("src/zeit.zig"); and pub usingnamespace zzdoc;).

@github-actions github-actions bot added the zig Zig use is a significant feature of the PR or issue label Sep 1, 2025
@samford samford marked this pull request as draft September 1, 2025 13:23
@samford samford force-pushed the lsr-remove-using-argument branch from 755427e to 195f8a5 Compare September 1, 2025 13:39
@samford samford added the CI-no-bottles Merge without publishing bottles label Sep 1, 2025
I added support to `DownloadStrategyDetector` for tangled.sh Git URLs,
so the `using: :git` argument in the `lsr` formula is (or will be)
redundant. This formula will fail `brew audit` (after we remove the
exception to skip the related audit for `lsr`), so this removes the
argument.

Besides that, this modifies the formula to use `zig@14`, as the build
will fail with errors otherwise (i.e., `expected function or variable
declaration after pub` for `build.zig` lines like
`pub usingnamespace @import("src/zeit.zig");` and
`pub usingnamespace zzdoc;`).
@samford samford force-pushed the lsr-remove-using-argument branch from 195f8a5 to 9175395 Compare September 1, 2025 13:42
@samford samford marked this pull request as ready for review September 2, 2025 13:28
@samford
Copy link
Member Author

samford commented Sep 2, 2025

The aforementioned DownloadStrategyDetector change is now in brew 4.6.8, so this can be merged.

@samford samford added the ready to merge PR can be merged once CI is green label Sep 2, 2025
@BrewTestBot BrewTestBot added this pull request to the merge queue Sep 2, 2025
Merged via the queue into main with commit cda70a6 Sep 2, 2025
32 checks passed
@BrewTestBot BrewTestBot deleted the lsr-remove-using-argument branch September 2, 2025 13:46
@samford samford removed the ready to merge PR can be merged once CI is green label Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI-no-bottles Merge without publishing bottles zig Zig use is a significant feature of the PR or issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants