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

Ability to specify the platform for publishing in homebrew #4719

Open
3 tasks done
jidckii opened this issue Mar 22, 2024 · 0 comments
Open
3 tasks done

Ability to specify the platform for publishing in homebrew #4719

jidckii opened this issue Mar 22, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@jidckii
Copy link
Contributor

jidckii commented Mar 22, 2024

Is your feature request related to a problem? Please describe.

My application is stored in gitlab, but the homebrew-tap repository is in github.
When I start publishing, goreleaser goes to a non-existent repository.

 • homebrew tap formula
      • error checking for default branch            projectID=yuccastream/homebrew-tap statusCode=401 error=GET https://gitlab.com/api/v4/projects/yuccastream/homebrew-tap: 401 {message: 401 Unauthorized}

My config:

...
brews:
  - name: yucca
    alternative_names:
      - "yucca@{{ .Version }}"
    repository:
      owner: yuccastream
      name: homebrew-tap
      token: "{{ .Env.GITHUB_HOMEBREW_TOKEN }}"
    folder: Formula
    goarm: "7"
    homepage: https://yucca.app
    description: Yucca - simple NVR CCTV solution (free edition)
    license: Copyright YuccaStream Team (https://yucca.app/en/terms)
    test: |
      system "#{bin}/yucca version"
    ids:
      - yucca
    url_template: "https://releases.yucca.app/{{- if .IsNightly }}nightly/{{.Version}}{{- else if .Prerelease }}beta/{{.Tag}}{{ else }}{{.Tag}}{{- end }}/{{.ArtifactName}}"

...
gitlab_urls:
  use_job_token: false

release:
  disable: true
...

Describe the solution you'd like

Maybe in the brews[].repository: add a platform (github|gitlab) option or a link?

Describe alternatives you've considered

I don't know

Search

  • I did search for other open and closed issues before opening this

Supporter

Code of Conduct

  • I agree to follow this project's Code of Conduct

Additional context

No response

@jidckii jidckii added enhancement New feature or request triage Issue pending triage by one of the maintainers labels Mar 22, 2024
@caarlos0 caarlos0 removed the triage Issue pending triage by one of the maintainers label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants