Skip to content

proto/buf/validate/validate.proto: does not exist #12

@CoolGoose

Description

@CoolGoose

Description

I am somehow making it so that I can't use the new validate beta

Steps to Reproduce

  1. Create auth.proto file in proto/auth/v1/auth.proto
syntax = "proto3";

package auth.v1;

import "buf/validate/validate.proto";
  1. My buf.gen
version: v1
managed:
  enabled: true
  go_package_prefix:
    default: github.com/SuppaDuppa/leprechaun/api/gen
plugins:
  - plugin: buf.build/protocolbuffers/go
    out: gen
    opt: paths=source_relative
  - plugin: buf.build/bufbuild/connect-go
    out: gen
    opt: paths=source_relative

buf.lock

# Generated by buf. DO NOT EDIT.
version: v1
deps:
  - remote: buf.build
    owner: bufbuild
    repository: protovalidate
    commit: ca37dc8895db4729ac94f62f00fbd994
    digest: shake256:42c51d9091a313379dfdb0482cd86d2de412eb856721ac637bc8ff986694fd27924214440681f678c4c9dd2c24af0b4f59caf53e60d6fd1caa48c2d66d6c0425

buf.work

version: v1
directories:
  - proto

buf.yaml

version: v1
deps:
  - buf.build/bufbuild/protovalidate
breaking:
  use:
    - FILE
lint:
  use:
    - DEFAULT
  ignore:
    - buf.build/bufbuild/protovalidate

Expected Behavior

Being able to run buf generate

Actual Behavior

proto/auth/v1/auth.proto:5:8:proto/buf/validate/validate.proto: does not exist

Environment

  • Operating System: Linux WSL
  • Version: Ubuntu 22.04.2 LTS
  • Compiler/Toolchain: gcc --version gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
  • Protobuf Compiler & Version: buf 1.20
  • Protovalidate Version: 0.1.5 (i just re-updated)

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionQuestions about the project or libraries

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions