Bump golangci-lint and (max) Go versions (#219)
Lint is failing with some inscrutable panic (on a commit with no code changes). Let's try bumping the version in case they fixed it. Additionally, the new version's github action uses Go 1.19, which means it pulls in gofmt updates to match the new [doc-comment formatting rules][1]. So I added Go 1.19 to our list of versions to test (fixes #216) and updated some of our doc-comments to format better in the new world (mostly using the new link syntax). [1]: https://go.dev/doc/comment Test plan: make lint
This commit is contained in:
+11
-7
@@ -16,10 +16,11 @@ var cfgFilenames = []string{".genqlient.yml", ".genqlient.yaml", "genqlient.yml"
|
||||
// Config represents genqlient's configuration, generally read from
|
||||
// genqlient.yaml.
|
||||
//
|
||||
// Callers must call ValidateAndFillDefaults before using the config.
|
||||
// Callers must call [Config.ValidateAndFillDefaults] before using the config.
|
||||
type Config struct {
|
||||
// The following fields are documented at:
|
||||
// https://github.com/Khan/genqlient/blob/main/docs/genqlient.yaml
|
||||
// The following fields are documented in the [genqlient.yaml docs].
|
||||
//
|
||||
// [genqlient.yaml docs]: https://github.com/Khan/genqlient/blob/main/docs/genqlient.yaml
|
||||
Schema StringList `yaml:"schema"`
|
||||
Operations StringList `yaml:"operations"`
|
||||
Generated string `yaml:"generated"`
|
||||
@@ -46,8 +47,9 @@ type Config struct {
|
||||
}
|
||||
|
||||
// A TypeBinding represents a Go type to which genqlient will bind a particular
|
||||
// GraphQL type, and is documented further at:
|
||||
// https://github.com/Khan/genqlient/blob/main/docs/genqlient.yaml
|
||||
// GraphQL type, and is documented further in the [genqlient.yaml docs].
|
||||
//
|
||||
// [genqlient.yaml docs]: https://github.com/Khan/genqlient/blob/main/docs/genqlient.yaml
|
||||
type TypeBinding struct {
|
||||
Type string `yaml:"type"`
|
||||
ExpectExactFields string `yaml:"expect_exact_fields"`
|
||||
@@ -56,8 +58,10 @@ type TypeBinding struct {
|
||||
}
|
||||
|
||||
// A PackageBinding represents a Go package for which genqlient will
|
||||
// automatically generate TypeBindings, and is documented further at:
|
||||
// https://github.com/Khan/genqlient/blob/main/docs/genqlient.yaml
|
||||
// automatically generate [TypeBinding] values, and is documented further in
|
||||
// the [genqlient.yaml docs].
|
||||
//
|
||||
// [genqlient.yaml docs]: https://github.com/Khan/genqlient/blob/main/docs/genqlient.yaml
|
||||
type PackageBinding struct {
|
||||
Package string `yaml:"package"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user