Remove usage of folder vendor #102

Merged
fyrchik merged 2 commits from acid-ant/frostfs-api-go:bugfix/101-fix-make-protoc into master 2024-09-04 19:51:17 +00:00
Member

Close #101

Fix make test.

Signed-off-by: Anton Nikiforov an.nikiforov@yadro.com

Close #101 Fix make test. Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
acid-ant added 2 commits 2024-08-08 15:05:49 +00:00
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
[#101] Fix make test
All checks were successful
DCO action / DCO (pull_request) Successful in 42s
Tests and linters / Tests (1.19) (pull_request) Successful in 38s
Tests and linters / Tests (1.20) (pull_request) Successful in 42s
Tests and linters / Tests with -race (pull_request) Successful in 1m7s
Tests and linters / Lint (pull_request) Successful in 1m24s
bd3e5195d4
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
acid-ant requested review from storage-core-committers 2024-08-08 15:05:58 +00:00
acid-ant requested review from storage-core-developers 2024-08-08 15:05:59 +00:00
achuprov approved these changes 2024-08-08 15:06:51 +00:00
dstepanov-yadro approved these changes 2024-08-08 15:10:44 +00:00
fyrchik reviewed 2024-08-08 16:00:44 +00:00
Makefile Outdated
@ -10,3 +10,3 @@
endif
BIN = bin
BIN = .bin
Owner

why? Fix make test is not a descriptive commit message.

why? `Fix make test` is not a descriptive commit message.
Author
Member

In this case, go skip this folder during scanning. Otherwise, it is necessary to exclude it from build.

In this case, `go` skip this folder during scanning. Otherwise, it is necessary to exclude it from build.
Owner

bin contains binaries, not code, thus its name
in node we have BIN = bin, everything works

`bin` contains binaries, not code, thus its name in node we have `BIN = bin`, everything works
Author
Member

Got the issue.

Got the issue.
Author
Member

Fixed, please take a look.

Fixed, please take a look.
Owner

On this PR

# Protoc generate
⇒ Processing ./.bin/protobuf/protoc-v27.2/include/google/protobuf/compiler/plugin.proto
⇒ Processing ./.bin/protobuf/protoc-v27.2/include/google/protobuf/any.proto
⇒ Processing ./.bin/protobuf/protoc-v27.2/include/google/protobuf/descriptor.proto
⇒ Processing ./.bin/protobuf/protoc-v27.2/include/google/protobuf/wrappers.proto
⇒ Processing ./.bin/protobuf/protoc-v27.2/include/google/protobuf/api.proto
⇒ Processing ./.bin/protobuf/protoc-v27.2/include/google/protobuf/timestamp.proto
⇒ Processing ./.bin/protobuf/protoc-v27.2/include/google/protobuf/empty.proto
⇒ Processing ./.bin/protobuf/protoc-v27.2/include/google/protobuf/field_mask.proto
⇒ Processing ./.bin/protobuf/protoc-v27.2/include/google/protobuf/source_context.proto
⇒ Processing ./.bin/protobuf/protoc-v27.2/include/google/protobuf/cpp_features.proto
protoc-gen-go: unable to determine Go import path for ".bin/protobuf/protoc-v27.2/include/google/protobuf/cpp_features.proto"

Please specify either:
        • a "go_package" option in the .proto source file, or
        • a "M" argument on the command line.

See https://protobuf.dev/reference/go/go-generated#package for more information.
On this PR ``` # Protoc generate ⇒ Processing ./.bin/protobuf/protoc-v27.2/include/google/protobuf/compiler/plugin.proto ⇒ Processing ./.bin/protobuf/protoc-v27.2/include/google/protobuf/any.proto ⇒ Processing ./.bin/protobuf/protoc-v27.2/include/google/protobuf/descriptor.proto ⇒ Processing ./.bin/protobuf/protoc-v27.2/include/google/protobuf/wrappers.proto ⇒ Processing ./.bin/protobuf/protoc-v27.2/include/google/protobuf/api.proto ⇒ Processing ./.bin/protobuf/protoc-v27.2/include/google/protobuf/timestamp.proto ⇒ Processing ./.bin/protobuf/protoc-v27.2/include/google/protobuf/empty.proto ⇒ Processing ./.bin/protobuf/protoc-v27.2/include/google/protobuf/field_mask.proto ⇒ Processing ./.bin/protobuf/protoc-v27.2/include/google/protobuf/source_context.proto ⇒ Processing ./.bin/protobuf/protoc-v27.2/include/google/protobuf/cpp_features.proto protoc-gen-go: unable to determine Go import path for ".bin/protobuf/protoc-v27.2/include/google/protobuf/cpp_features.proto" Please specify either: • a "go_package" option in the .proto source file, or • a "M" argument on the command line. See https://protobuf.dev/reference/go/go-generated#package for more information. ```
acid-ant force-pushed bugfix/101-fix-make-protoc from bd3e5195d4 to a0a9b765f3 2024-08-09 06:35:40 +00:00 Compare
Author
Member

On this PR

# Protoc generate
...
protoc-gen-go: unable to determine Go import path for ".bin/protobuf/protoc-v27.2/include/google/protobuf/cpp_features.proto"

Please specify either:
        • a "go_package" option in the .proto source file, or
        • a "M" argument on the command line.

See https://protobuf.dev/reference/go/go-generated#package for more information.

That happened because protoc generated *.go files based in include folder. Fixed.

> On this PR > ``` > # Protoc generate > ... > protoc-gen-go: unable to determine Go import path for ".bin/protobuf/protoc-v27.2/include/google/protobuf/cpp_features.proto" > > Please specify either: > • a "go_package" option in the .proto source file, or > • a "M" argument on the command line. > > See https://protobuf.dev/reference/go/go-generated#package for more information. > ``` That happened because `protoc` generated `*.go` files based in `include` folder. Fixed.
fyrchik approved these changes 2024-08-09 06:50:46 +00:00
fyrchik merged commit a0a9b765f3 into master 2024-08-09 06:50:52 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-api-go#102
No description provided.