Coder Social home page Coder Social logo

Comments (7)

caarlos0 avatar caarlos0 commented on June 1, 2024

It's because the AUR pipe pushes to https://aur.archlinux.org only, and the only way of auth there is private keys.

FWIW you can create another private key just for your account there.


huge thanks for creating and maintaining this tool!

thank you! 🙏

from goreleaser.

bartekpacia avatar bartekpacia commented on June 1, 2024

It's because the AUR pipe pushes to https://aur.archlinux.org/ only, and the only way of auth there is private keys.

Ah yeah, this makes sense. Thank you. But I am using aurs in my GoReleaser to push to my private AUR repo. See here. Is this the valid usecase?

I do not plan on pushing to "official" AUR.

from goreleaser.

caarlos0 avatar caarlos0 commented on June 1, 2024

I think you could set the git_url to the the one of that repo, but yeah, it will not be as "clean" as brews for example 🤔

from goreleaser.

bartekpacia avatar bartekpacia commented on June 1, 2024

you could set the git_url to the the one of that repo

Sorry, I don't think I understand. Do you mean this?

"In the .goreleaser.yaml file in the bartekpacia/fhome repository, set git_url to [email protected]:bartekpacia/fhome.git? So in other words, eliminate bartekpacia/aur repository"?

from goreleaser.

caarlos0 avatar caarlos0 commented on June 1, 2024

I mean, you could do something like this:

aurs:
  - # ...
    git_url: "[email protected]:bartekpacia/aur.git"
    # ...

from goreleaser.

bartekpacia avatar bartekpacia commented on June 1, 2024

I'm already doing this: https://github.com/bartekpacia/fhome/blob/40d11f11f2393cfc7139f2669ab36d8c4db819de/.goreleaser.yaml#L100. It requires me to specify an SSH key in private_key.

I mean, if in brews I can specify repo A to push to using a PAT, I'd also like to be able, in aurs, to specify repo B and push to it using a PAT as well.

from goreleaser.

caarlos0 avatar caarlos0 commented on June 1, 2024

yes, pat would not work, you'll need to set a private key as well

Thinking more about it now, I think you might be able to workaround it with

aur:
  - # ...
    # set a https url authing with the PAT
    git_url: "https://{{ .Env.GH_PATH }}@github.com/bartekpacia/aur"

    # path to a key generated at runtime, would not be used
    private_key: ./foo

    # by default this will use the private_key value, override so it doesn't
    git_ssh_command: "ssh"
    # ...

PS: i havent tested this, but I think it might work

from goreleaser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.