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

audit artifact autodetection for use with go-releaser #197

Open
pomdtr opened this issue Mar 2, 2023 · 8 comments
Open

audit artifact autodetection for use with go-releaser #197

pomdtr opened this issue Mar 2, 2023 · 8 comments

Comments

@pomdtr
Copy link

pomdtr commented Mar 2, 2023

Hi, love your work on this.

I'm considering using this tool for my golang project (https://github.com/pomdtr/sunbeam),
however it looks like the installation screen can only be generated for cargo-dist projects.

What are your opinion on adding support for other releasers ?

@SaraVieira
Copy link
Contributor

Hey!

Thank you so much! Do you have binaries or do you have to use the go installer.

If so we also support any package manager

@SaraVieira
Copy link
Contributor

Seems there is no test for that whatsoever and the docs are still in progress but you can use:

package_managers: {go: "go install github.com/pomdtr/sunbeam@main"}

Instead of cargo dist true, let me know if there is something i am missing

@pomdtr
Copy link
Author

pomdtr commented Mar 2, 2023

I plan to add binaries using GitHub release, abd brew / snap / aur packages

@ashleygwilliams
Copy link
Member

@pomdtr i know it's been a bit but i'm looking into this and adding support for it- does goreleaser generate a manifest for the assets it builds?

@pomdtr
Copy link
Author

pomdtr commented Apr 14, 2023

Not sure it is what you are looking for, but goreleaser returns checksum.txt file : see https://github.com/deta/space-cli/releases/tag/v0.3.1

@pomdtr
Copy link
Author

pomdtr commented Apr 17, 2023

After running goreleaser locally, I found out that it generates an artifacts.json file listing every binaries!

[
    {
        "name": "sunbeam",
        "path": "/Users/achille/Developer/github.com/pomdtr/sunbeam/dist/sunbeam_darwin_arm64/sunbeam",
        "goos": "darwin",
        "goarch": "arm64",
        "internal_type": 4,
        "type": "Binary",
        "extra": {
            "Binary": "sunbeam",
            "Ext": "",
            "ID": "sunbeam"
        }
    },
   // ...
]

@ashleygwilliams
Copy link
Member

@pomdtr !!! this is excellent. having this file will make it very easy for oranda to generate what it needs to. does goreleaser give you an option to also publish that file to github releases?

@pomdtr
Copy link
Author

pomdtr commented Apr 17, 2023

I'm not sure, but it looks like you can publish extra files in the release step:

image

Here is the link to the doc: https://goreleaser.com/customization/release/

I'm currently tuning the goreleaser setup for sunbeam, i'll take a look!

@ashleygwilliams ashleygwilliams changed the title Add support for goreleaser audit artifact autodetection for use with go-releaser Sep 29, 2023
@ashleygwilliams ashleygwilliams added this to the oranda-0.5.0 milestone Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants