tea tap broken #135
Labels
No Label
in progress
kind/bug
kind/deployment
kind/docs
kind/enhancement
kind/feature
kind/lint
kind/proposal
kind/question
kind/refactor
kind/security
kind/testing
kind/translation
kind/ui
lgtm/done
lgtm/need 1
lgtm/need 2
priority/critical
priority/low
priority/maybe
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
status/blocked
status/needs-feedback
status/wip
No Milestone
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/homebrew-gitea#135
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Looks like #130 broke the tea build:
Can someone actually running brew look into this? ?
Report originally sourced from discord
I got another problem with tea@lunny you probably need to update the tap, that issue should've been fixed by #132
I just tried installing the tap and can confirm it fails as reported:
I've traced one of my problems to https://gitea.com/gitea/homebrew-gitea/src/branch/master/tea.rb#L60
As the downloaded file will be moved to something like
/tmp/tea-20210627-323-kegscl/aws4_request\&X-Amz-Date=20210627T201716Z\&X-Amz-Expires=600\&X-Amz-SignedHeaders=host\&X-Amz-Signature=9db43fdbba34a7dcd0f84581d214111fd9b9f5bf4ca3b3a57b8f999209e5152e
however"#{buildpath}/#{Tea.bin_filename(version)}"
thinks the path will be something like /tmp/tea-22222-22/tea-0.7.0-darwin-amd64`I suspect this is the same thing that is happening with the Gitea formula too.
So homebrew is doing weird things now that we are redirecting w/ querystrings.
The NilClass issue seems to be related to the variable substitution that we are doing with the dynamic URL.
There is syntax error also:
and
Use
${}
, should be#{}
, fixing that, you can tap the repository, but it won't install, as per @techknowlogick .I think there are some misconceptions going on here, as stable and head url's are not pointing to source code to be compiled, but rather to pre-built binaries. This repository won't work for building gitea/tea. IMO, if you plan to provide gitea from upstream homebrew, and reuse this formulae, this should be fixed. But if you plan to provide this as a thid-party homebrew repository (tap), you could do it by providing just pre-built binaries (Hashicorp does this and no head, stable sources for compiling (as
brew install --build-from-source
).