internal/cmd/generate-alias: avoid generating version markers
We control both v1 and v2.
The generated version markers are just a nuisance.
Change-Id: I0d3248b20414f6279a83f7159bc3a4493619ce36
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/191677
Reviewed-by: Damien Neil <dneil@google.com>
Joe Tsai
4 years ago
85 | 85 |
check(err)
|
86 | 86 |
for _, file := range gen.Files {
|
87 | 87 |
if file.Generate {
|
|
88 |
gengo.GenerateVersionMarkers = false
|
88 | 89 |
gengo.GenerateFile(gen, file)
|
89 | 90 |
}
|
90 | 91 |
}
|
0 | 0 |
// Code generated by protoc-gen-go. DO NOT EDIT.
|
1 | |
// versions:
|
2 | |
// protoc-gen-go v1.19.0-devel
|
3 | |
// protoc (unknown)
|
4 | |
// go v1.12.5
|
5 | 1 |
// source: github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.proto
|
6 | 2 |
|
7 | 3 |
package descriptor
|
|
12 | 8 |
descriptorpb "google.golang.org/protobuf/types/descriptorpb"
|
13 | 9 |
reflect "reflect"
|
14 | 10 |
sync "sync"
|
15 | |
)
|
16 | |
|
17 | |
const (
|
18 | |
// Verify that this generated code is sufficiently up-to-date.
|
19 | |
_ = protoimpl.EnforceVersion(19 - protoimpl.MinVersion)
|
20 | |
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
21 | |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 19)
|
22 | 11 |
)
|
23 | 12 |
|
24 | 13 |
// Symbols defined in public import of google/protobuf/descriptor.proto.
|
0 | 0 |
// Code generated by protoc-gen-go. DO NOT EDIT.
|
1 | |
// versions:
|
2 | |
// protoc-gen-go v1.19.0-devel
|
3 | |
// protoc (unknown)
|
4 | |
// go v1.12.5
|
5 | 1 |
// source: github.com/golang/protobuf/protoc-gen-go/plugin/plugin.proto
|
6 | 2 |
|
7 | 3 |
package plugin_go
|
|
12 | 8 |
pluginpb "google.golang.org/protobuf/types/pluginpb"
|
13 | 9 |
reflect "reflect"
|
14 | 10 |
sync "sync"
|
15 | |
)
|
16 | |
|
17 | |
const (
|
18 | |
// Verify that this generated code is sufficiently up-to-date.
|
19 | |
_ = protoimpl.EnforceVersion(19 - protoimpl.MinVersion)
|
20 | |
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
21 | |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 19)
|
22 | 11 |
)
|
23 | 12 |
|
24 | 13 |
// Symbols defined in public import of google/protobuf/compiler/plugin.proto.
|
0 | 0 |
// Code generated by protoc-gen-go. DO NOT EDIT.
|
1 | |
// versions:
|
2 | |
// protoc-gen-go v1.19.0-devel
|
3 | |
// protoc (unknown)
|
4 | |
// go v1.12.5
|
5 | 1 |
// source: github.com/golang/protobuf/ptypes/any/any.proto
|
6 | 2 |
|
7 | 3 |
package any
|
|
12 | 8 |
anypb "google.golang.org/protobuf/types/known/anypb"
|
13 | 9 |
reflect "reflect"
|
14 | 10 |
sync "sync"
|
15 | |
)
|
16 | |
|
17 | |
const (
|
18 | |
// Verify that this generated code is sufficiently up-to-date.
|
19 | |
_ = protoimpl.EnforceVersion(19 - protoimpl.MinVersion)
|
20 | |
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
21 | |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 19)
|
22 | 11 |
)
|
23 | 12 |
|
24 | 13 |
// Symbols defined in public import of google/protobuf/any.proto.
|
0 | 0 |
// Code generated by protoc-gen-go. DO NOT EDIT.
|
1 | |
// versions:
|
2 | |
// protoc-gen-go v1.19.0-devel
|
3 | |
// protoc (unknown)
|
4 | |
// go v1.12.5
|
5 | 1 |
// source: github.com/golang/protobuf/ptypes/duration/duration.proto
|
6 | 2 |
|
7 | 3 |
package duration
|
|
12 | 8 |
durationpb "google.golang.org/protobuf/types/known/durationpb"
|
13 | 9 |
reflect "reflect"
|
14 | 10 |
sync "sync"
|
15 | |
)
|
16 | |
|
17 | |
const (
|
18 | |
// Verify that this generated code is sufficiently up-to-date.
|
19 | |
_ = protoimpl.EnforceVersion(19 - protoimpl.MinVersion)
|
20 | |
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
21 | |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 19)
|
22 | 11 |
)
|
23 | 12 |
|
24 | 13 |
// Symbols defined in public import of google/protobuf/duration.proto.
|
0 | 0 |
// Code generated by protoc-gen-go. DO NOT EDIT.
|
1 | |
// versions:
|
2 | |
// protoc-gen-go v1.19.0-devel
|
3 | |
// protoc (unknown)
|
4 | |
// go v1.12.5
|
5 | 1 |
// source: github.com/golang/protobuf/ptypes/empty/empty.proto
|
6 | 2 |
|
7 | 3 |
package empty
|
|
12 | 8 |
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
13 | 9 |
reflect "reflect"
|
14 | 10 |
sync "sync"
|
15 | |
)
|
16 | |
|
17 | |
const (
|
18 | |
// Verify that this generated code is sufficiently up-to-date.
|
19 | |
_ = protoimpl.EnforceVersion(19 - protoimpl.MinVersion)
|
20 | |
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
21 | |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 19)
|
22 | 11 |
)
|
23 | 12 |
|
24 | 13 |
// Symbols defined in public import of google/protobuf/empty.proto.
|
0 | 0 |
// Code generated by protoc-gen-go. DO NOT EDIT.
|
1 | |
// versions:
|
2 | |
// protoc-gen-go v1.19.0-devel
|
3 | |
// protoc (unknown)
|
4 | |
// go v1.12.5
|
5 | 1 |
// source: github.com/golang/protobuf/ptypes/struct/struct.proto
|
6 | 2 |
|
7 | 3 |
package structpb
|
|
12 | 8 |
structpb "google.golang.org/protobuf/types/known/structpb"
|
13 | 9 |
reflect "reflect"
|
14 | 10 |
sync "sync"
|
15 | |
)
|
16 | |
|
17 | |
const (
|
18 | |
// Verify that this generated code is sufficiently up-to-date.
|
19 | |
_ = protoimpl.EnforceVersion(19 - protoimpl.MinVersion)
|
20 | |
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
21 | |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 19)
|
22 | 11 |
)
|
23 | 12 |
|
24 | 13 |
// Symbols defined in public import of google/protobuf/struct.proto.
|
0 | 0 |
// Code generated by protoc-gen-go. DO NOT EDIT.
|
1 | |
// versions:
|
2 | |
// protoc-gen-go v1.19.0-devel
|
3 | |
// protoc (unknown)
|
4 | |
// go v1.12.5
|
5 | 1 |
// source: github.com/golang/protobuf/ptypes/timestamp/timestamp.proto
|
6 | 2 |
|
7 | 3 |
package timestamp
|
|
12 | 8 |
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
13 | 9 |
reflect "reflect"
|
14 | 10 |
sync "sync"
|
15 | |
)
|
16 | |
|
17 | |
const (
|
18 | |
// Verify that this generated code is sufficiently up-to-date.
|
19 | |
_ = protoimpl.EnforceVersion(19 - protoimpl.MinVersion)
|
20 | |
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
21 | |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 19)
|
22 | 11 |
)
|
23 | 12 |
|
24 | 13 |
// Symbols defined in public import of google/protobuf/timestamp.proto.
|
0 | 0 |
// Code generated by protoc-gen-go. DO NOT EDIT.
|
1 | |
// versions:
|
2 | |
// protoc-gen-go v1.19.0-devel
|
3 | |
// protoc (unknown)
|
4 | |
// go v1.12.5
|
5 | 1 |
// source: github.com/golang/protobuf/ptypes/wrappers/wrappers.proto
|
6 | 2 |
|
7 | 3 |
package wrappers
|
|
12 | 8 |
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
|
13 | 9 |
reflect "reflect"
|
14 | 10 |
sync "sync"
|
15 | |
)
|
16 | |
|
17 | |
const (
|
18 | |
// Verify that this generated code is sufficiently up-to-date.
|
19 | |
_ = protoimpl.EnforceVersion(19 - protoimpl.MinVersion)
|
20 | |
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
21 | |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 19)
|
22 | 11 |
)
|
23 | 12 |
|
24 | 13 |
// Symbols defined in public import of google/protobuf/wrappers.proto.
|