Skip to content

Commit

Permalink
Merge branch 'main' into renovate/major-jekyll-ecosystem-packages
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-scripniciuc authored Jan 2, 2024
2 parents e4f7b4e + bbcf5ca commit ba71260
Show file tree
Hide file tree
Showing 25 changed files with 40 additions and 28 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: "1.20"
- run: go test -p 1 ./...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: "1.20"
- name: staticcheck
Expand All @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: "1.20"
- name: Run the quality checker (which catches obvious mistakes, missing docs, etc.)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
arch: amd64
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
# The API linter does not use these, but we need them to build the
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.60.0"
".": "1.61.0"
}
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## [1.61.0](https://github.com/googleapis/api-linter/compare/v1.60.0...v1.61.0) (2024-01-02)


### Features

* undelete should not be required for declarative-friendly interfaces ([#1304](https://github.com/googleapis/api-linter/issues/1304)) ([b40c90d](https://github.com/googleapis/api-linter/commit/b40c90d9b1a30d50c08e1373dd9c7b468dd651c2))


### Documentation

* update release docs ([#1301](https://github.com/googleapis/api-linter/issues/1301)) ([3cfd411](https://github.com/googleapis/api-linter/commit/3cfd4111355af9ac581a5bc45e860d8592869418))

## [1.60.0](https://github.com/googleapis/api-linter/compare/v1.59.2...v1.60.0) (2023-12-15)


Expand Down
2 changes: 1 addition & 1 deletion cmd/api-linter/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ import (
"strings"
"sync"

dpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
"github.com/googleapis/api-linter/internal"
"github.com/googleapis/api-linter/lint"
"github.com/jhump/protoreflect/desc"
"github.com/jhump/protoreflect/desc/protoparse"
"github.com/spf13/pflag"
"google.golang.org/protobuf/proto"
dpb "google.golang.org/protobuf/types/descriptorpb"
"gopkg.in/yaml.v2"
)

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ require (
cloud.google.com/go/longrunning v0.5.2
github.com/bmatcuk/doublestar/v4 v4.6.1
github.com/gertd/go-pluralize v0.2.1
github.com/golang/protobuf v1.5.3
github.com/google/go-cmp v0.6.0
github.com/jhump/protoreflect v1.15.3
github.com/lithammer/dedent v1.1.0
Expand All @@ -17,12 +16,13 @@ require (
golang.org/x/text v0.13.0
google.golang.org/genproto v0.0.0-20231002182017-d307bd883b97
google.golang.org/genproto/googleapis/api v0.0.0-20231002182017-d307bd883b97
google.golang.org/protobuf v1.31.0
google.golang.org/protobuf v1.32.0
gopkg.in/yaml.v2 v2.4.0
)

require (
github.com/bufbuild/protocompile v0.6.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/mattn/go-runewidth v0.0.9 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/sync v0.3.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ google.golang.org/grpc v1.57.1 h1:upNTNqv0ES+2ZOOqACwVtS3Il8M12/+Hz41RCPzAjQg=
google.golang.org/grpc v1.57.1/go.mod h1:Sd+9RMTACXwmub0zcNY2c4arhtrbBYD1AUHI/dt16Mo=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8=
google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I=
google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
Expand Down
2 changes: 1 addition & 1 deletion internal/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
package internal

// Version is the current tagged release of the library.
const Version = "1.60.0"
const Version = "1.61.0"
2 changes: 1 addition & 1 deletion lint/problem.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package lint
import (
"encoding/json"

dpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
"github.com/jhump/protoreflect/desc"
dpb "google.golang.org/protobuf/types/descriptorpb"
)

// Problem contains information about a result produced by an API Linter.
Expand Down
2 changes: 1 addition & 1 deletion lint/problem_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"strings"
"testing"

dpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
"github.com/jhump/protoreflect/desc/builder"
dpb "google.golang.org/protobuf/types/descriptorpb"
"gopkg.in/yaml.v2"
)

Expand Down
2 changes: 1 addition & 1 deletion lint/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"regexp"
"strings"

dpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
"github.com/jhump/protoreflect/desc"
dpb "google.golang.org/protobuf/types/descriptorpb"
)

// ProtoRule defines a lint rule that checks Google Protobuf APIs.
Expand Down
2 changes: 1 addition & 1 deletion lint/rule_enabled.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package lint
import (
"strings"

dpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
"github.com/jhump/protoreflect/desc"
dpb "google.golang.org/protobuf/types/descriptorpb"
)

// defaultDisabledRules is the list of rules or groups that are by default
Expand Down
2 changes: 1 addition & 1 deletion lint/rule_enabled_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ package lint
import (
"testing"

dpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
"github.com/jhump/protoreflect/desc"
"github.com/jhump/protoreflect/desc/builder"
dpb "google.golang.org/protobuf/types/descriptorpb"
)

func TestRuleIsEnabled(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion locations/descriptor_locations.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
package locations

import (
dpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
"github.com/jhump/protoreflect/desc"
dpb "google.golang.org/protobuf/types/descriptorpb"
)

// DescriptorName returns the precise location for a descriptor's name.
Expand Down
2 changes: 1 addition & 1 deletion locations/field_locations.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
package locations

import (
dpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
"github.com/jhump/protoreflect/desc"
apb "google.golang.org/genproto/googleapis/api/annotations"
"google.golang.org/protobuf/reflect/protoreflect"
dpb "google.golang.org/protobuf/types/descriptorpb"
)

// FieldOption returns the precise location for the given extension defintion on
Expand Down
2 changes: 1 addition & 1 deletion locations/file_locations.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
package locations

import (
dpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
"github.com/jhump/protoreflect/desc"
apb "google.golang.org/genproto/googleapis/api/annotations"
dpb "google.golang.org/protobuf/types/descriptorpb"
)

// FileSyntax returns the location of the syntax definition in a file descriptor.
Expand Down
2 changes: 1 addition & 1 deletion locations/file_locations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ package locations
import (
"testing"

dpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
"github.com/google/go-cmp/cmp"
"github.com/jhump/protoreflect/desc"
"github.com/jhump/protoreflect/desc/builder"
dpb "google.golang.org/protobuf/types/descriptorpb"
)

func TestLocations(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion locations/locations.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
package locations

import (
dpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
"github.com/jhump/protoreflect/desc"
dpb "google.golang.org/protobuf/types/descriptorpb"
)

// pathLocation returns the precise location for a given descriptor and path.
Expand Down
2 changes: 1 addition & 1 deletion locations/message_locations.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
package locations

import (
dpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
"github.com/jhump/protoreflect/desc"
apb "google.golang.org/genproto/googleapis/api/annotations"
dpb "google.golang.org/protobuf/types/descriptorpb"
)

// MessageResource returns the precise location of the `google.api.resource`
Expand Down
2 changes: 1 addition & 1 deletion locations/method_locations.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ package locations

import (
lrpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
dpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
"github.com/jhump/protoreflect/desc"
apb "google.golang.org/genproto/googleapis/api/annotations"
dpb "google.golang.org/protobuf/types/descriptorpb"
)

// MethodRequestType returns the precise location of the method's input type.
Expand Down
2 changes: 1 addition & 1 deletion rules/aip0123/duplicate_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ import (
"sort"
"strings"

dpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
"github.com/googleapis/api-linter/lint"
"github.com/googleapis/api-linter/locations"
"github.com/googleapis/api-linter/rules/internal/utils"
"github.com/jhump/protoreflect/desc"
dpb "google.golang.org/protobuf/types/descriptorpb"
)

type resourceDef struct {
Expand Down
2 changes: 1 addition & 1 deletion rules/aip0123/resource_pattern.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ import (
"fmt"
"strings"

dpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
"github.com/googleapis/api-linter/lint"
"github.com/googleapis/api-linter/locations"
"github.com/googleapis/api-linter/rules/internal/utils"
"github.com/jhump/protoreflect/desc"
"google.golang.org/genproto/googleapis/api/annotations"
dpb "google.golang.org/protobuf/types/descriptorpb"
)

var resourcePattern = &lint.MessageRule{
Expand Down
2 changes: 1 addition & 1 deletion rules/aip0123/resource_variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ import (
"fmt"
"strings"

dpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
"github.com/googleapis/api-linter/lint"
"github.com/googleapis/api-linter/locations"
"github.com/googleapis/api-linter/rules/internal/utils"
"github.com/jhump/protoreflect/desc"
"google.golang.org/genproto/googleapis/api/annotations"
dpb "google.golang.org/protobuf/types/descriptorpb"
)

var resourceVariables = &lint.MessageRule{
Expand Down
2 changes: 1 addition & 1 deletion rules/aip0191/file_option_consistency.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import (
"sort"
"strconv"

dpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
"github.com/googleapis/api-linter/lint"
"github.com/googleapis/api-linter/locations"
"github.com/jhump/protoreflect/desc"
dpb "google.golang.org/protobuf/types/descriptorpb"
)

var consistentOptions = map[string]func(*dpb.FileOptions) string{
Expand Down
2 changes: 1 addition & 1 deletion rules/aip0191/file_option_consistency_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ import (
"sort"
"testing"

dpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
"github.com/googleapis/api-linter/lint"
"github.com/googleapis/api-linter/rules/internal/testutils"
"github.com/jhump/protoreflect/desc"
"github.com/jhump/protoreflect/desc/builder"
"github.com/stoewer/go-strcase"
"google.golang.org/protobuf/proto"
dpb "google.golang.org/protobuf/types/descriptorpb"
)

func TestFileOptionConsistency(t *testing.T) {
Expand Down

0 comments on commit ba71260

Please sign in to comment.