GithubHelp home page GithubHelp logo

buf-setup-action's People

Contributors

amckinney avatar app-token-buf-setup-action[bot] avatar arunpoudel avatar bufdev avatar bweston92 avatar chrispine avatar cyinma avatar dependabot[bot] avatar doriable avatar elliotmjackson avatar emcfarlane avatar jhump avatar jleeh avatar jsok avatar lucperkins avatar njhale avatar oliversun9 avatar paul-sachs avatar pkwarren avatar rhbuf avatar robbertvanginkel avatar rubensf avatar sjdaws avatar smallsamantha avatar stefanvanburen avatar tonyli233 avatar willabides avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

buf-setup-action's Issues

Ability to set BUF_TOKEN

Not just only with buf-push action.
To be able to run the following command: buf generate buf.build/<org>/<repo>.

Add support for linux/aarch64 downloads

#9 added support for ARM environments, but no download exists for buf with the format buf-Linux-arm64. One does exist for buf-Linux-aarch64 which is probably what should be downloaded.

1.29.0-1 causing issue during setup

From my github action:

Run bufbuild/buf-setup-action@v1
  with:
    buf_user: ***
    buf_api_token: ***
    github_token: ***
    version: 1.29.0-1
    buf_domain: buf.build
  env:
    GOPRIVATE: buf.build/gen/go
Setting up buf version "1.29.0-1"
Resolving the download URL for the current platform...
Error: Not Found - https://docs.github.com/rest/releases/releases#get-a-release-by-tag-name

@emcfarlane

Cannot get versions past the first page of Release API results

Hey, folks! Ran into a weird bug today with this action. On a PR, v0.41.0 of buf was configured to be run against but we received the following error:

Run bufbuild/[email protected]
Setting up buf version "0.41.0"
Resolving the download URL for the current platform...
Error: Unable to find Buf version "0.41.0" for platform "Linux" and architecture "x86_64".

The release does exist, and has a Linux/x86_64 version available to download, and there are currently no incidents on the GH APIs. Looking into the action's definition further, the List Releases endpoint is called, but without pagination. This causes the API to default to 30 results per page, and as of the release of v1.0.0-rc8 two hours ago, v0.41.0 became the 31st release.

We encountered this on v0.1.0 of the Action, but this affects all versions through latest.

Add support for windows/arms runtime environments

Currently only linux and x64 is supported as platform and architecture. We should add support for Windows and ARM platforms and architectures.

See

switch (os.arch()) {
// The available architectures can be found at:
// https://nodejs.org/api/process.html#process_process_arch
case 'x64':
architecture = 'x86_64';
break;
default:
return {
message: `The "${os.arch()}" architecture is not supported with a Buf release.`
};
}
let platform = '';
switch (os.platform()) {
// The available platforms can be found at:
// https://nodejs.org/api/process.html#process_process_platform
case 'linux':
platform = 'Linux';
break;
default:
return {
message: `The "${os.platform()}" platform is not supported with a Buf release.`
};
}
.

Add changelog to releases

It would be very helpful if the release would contain a change log. This would make updating the action way easier and avoid unexpected changes from being applied and breaking pipelines.

Use latest buf when use Github action Setup buf without specifying version

Hi, I'm trying to use github action Setup buf.

I couldn't find document for the github action except of https://github.com/marketplace/actions/setup-buf
If you have a document for it, please let me know.

Anyway, I tried wizhi/setup-buf@v1 without with.version option.

      - uses: wizhi/setup-buf@v1 # no specify with.version option
      - run: buf --version

I expect to use latest version of buf. (current latest version is 0.41.0)
But, I got output 0.18.0, not 0.41.0
0.18.0 even doesn't contain build command. So, I think it's too low version as default version.

So I want to suggest that use latest buf when use the github action without with.version option
Assuming that latest version is 0.41.0, these below github action workflows should print same output. (0.41.0)

      - uses: wizhi/setup-buf@v1
      - run: buf --version
      - uses: wizhi/setup-buf@v1
        with:
          version: 0.41.0
      - run: buf --version

Automate Makefile

The current Makefile setup isn't complete - new users need a variety of tools already installed in order to use it, and running make won't automatically install the dependencies you need. This is prone to version mismatch bugs on different developer machines, and causes a lot of headache to get started with our GitHub action development (this also applies to buf-{lint,breaking,push}-action).

Additionally, we should verify that make build doesn't produce a diff in CI, similar to what we do for make generate in our other repositories.

These are tasks that should have been done from the very beginning, but were left as an afterthought and repeatedly forgotten about.

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.