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

buf.yaml v2 Skipping push, no named modules detected #76

Closed
krak3n opened this issue Nov 1, 2024 · 1 comment
Closed

buf.yaml v2 Skipping push, no named modules detected #76

krak3n opened this issue Nov 1, 2024 · 1 comment

Comments

@krak3n
Copy link

krak3n commented Nov 1, 2024

What

Push does not seem to work when running a buf.yaml at version 2:

version: v2
modules:
  - path: proto/
    name: buf.custom.domain/foo/bar
breaking:
  ignore_unstable_packages: true
  use:
    - FILE
lint:
  use:
    - STANDARD

Workflows:

name: Push

on:
  push:
    paths:
      - "**.proto"
      - "**/buf.yaml"
      - "**/buf.lock"
      - "**/README.md"

permissions:
  contents: read

jobs:
  buf:
    name: Buf

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4

      - uses: bufbuild/buf-action@v1
        with:
          token: ${{ secrets.BUF_TOKEN }}
          github_token: ${{ secrets.GITHUB_TOKEN }}
          domain: buf.custom.domain
          input: proto
          push: true

Debug output from the action:

##[debug]Skipping push, no named modules detected

I can also push with buf push --label foo locally using buf at v1.46.0.

buf config ls-modules --format name lists buf.custom.domain/foo/bar

buf build --error-format github-actions proto lists no output.

@krak3n
Copy link
Author

krak3n commented Nov 1, 2024

It was the input: proto which is no longer required for v2 workflows. Closing.

@krak3n krak3n closed this as completed Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant