Skip to content

Commit

Permalink
ensure module is 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
rocktavious committed Jan 13, 2024
1 parent 3c76642 commit 4d44122
Show file tree
Hide file tree
Showing 35 changed files with 56 additions and 35 deletions.
3 changes: 3 additions & 0 deletions .changes/v2024.1.13.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## [January 13, 2024](https://github.com/OpsLevel/opslevel-go/compare/v2023.12.14...v2024.1.13)

This release contains a multitude of breaking changes. This release marks that beginning of applying code generation to opslevel-go to standardize the codebase to both speed up development and ensure consistency and correctness. A number of methods have had their signatures changed as well as several methods have been deprecated and previously deprecated methods have been removed.

### Bugfix
* Fix bug where Team inputs did not omit optional ParentTeam field
* Fix bug where optional IdentifierInput fields could never be unset - this can now be done by passing NewIdentifier() with no args
Expand Down
2 changes: 1 addition & 1 deletion actions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"
)

Expand Down
2 changes: 1 addition & 1 deletion alert_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"
)

Expand Down
2 changes: 1 addition & 1 deletion cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"
)

Expand Down
2 changes: 1 addition & 1 deletion category_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"
)

Expand Down
2 changes: 1 addition & 1 deletion check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"
)

Expand Down
2 changes: 1 addition & 1 deletion clientGQL_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"text/template"

"github.com/Masterminds/sprig/v3"
ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"

"github.com/rs/zerolog"
Expand Down
2 changes: 1 addition & 1 deletion clientRest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"

"github.com/go-resty/resty/v2"
ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"
)

Expand Down
2 changes: 1 addition & 1 deletion common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"
)

Expand Down
2 changes: 1 addition & 1 deletion dependencies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"
)

Expand Down
2 changes: 1 addition & 1 deletion document_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"

"github.com/rocktavious/autopilot/v2023"
)
Expand Down
2 changes: 1 addition & 1 deletion domain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set of options if need-be:
package opslevel_example

import (
"github.com/opslevel/opslevel-go/v2023"
"github.com/opslevel/opslevel-go/v2024"
)

type Client struct {
Expand Down
2 changes: 1 addition & 1 deletion examples/mutation.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_example
import (
"fmt"

"github.com/opslevel/opslevel-go/v2023"
"github.com/opslevel/opslevel-go/v2024"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion examples/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_example
import (
"fmt"

"github.com/opslevel/opslevel-go/v2023"
"github.com/opslevel/opslevel-go/v2024"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion filters_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"

"github.com/rocktavious/autopilot/v2023"
)
Expand Down
8 changes: 7 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ require (
github.com/gosimple/slug v1.13.1
github.com/hashicorp/go-retryablehttp v0.7.5
github.com/hasura/go-graphql-client v0.10.2
github.com/invopop/jsonschema v0.12.0
github.com/mitchellh/mapstructure v1.5.0
github.com/opslevel/moredefaults v0.0.0-20240112142637-078c8ff8ba9c
github.com/relvacode/iso8601 v1.3.0
github.com/rocktavious/autopilot/v2023 v2023.12.7
Expand All @@ -18,6 +20,8 @@ require (
require (
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver/v3 v3.2.0 // indirect
github.com/bahlo/generic-list-go v0.2.0 // indirect
github.com/buger/jsonparser v1.1.1 // indirect
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
Expand All @@ -27,16 +31,18 @@ require (
github.com/huandu/xstrings v1.3.3 // indirect
github.com/imdario/mergo v0.3.11 // indirect
github.com/leodido/go-urn v1.2.4 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/mitchellh/copystructure v1.0.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mitchellh/reflectwalk v1.0.0 // indirect
github.com/shopspring/decimal v1.2.0 // indirect
github.com/spf13/cast v1.3.1 // indirect
github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect
golang.org/x/crypto v0.17.0 // indirect
golang.org/x/net v0.19.0 // indirect
golang.org/x/sys v0.16.0 // indirect
golang.org/x/text v0.14.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
nhooyr.io/websocket v1.8.10 // indirect
)
12 changes: 12 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7Y
github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ=
github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA=
github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM=
github.com/bahlo/generic-list-go v0.2.0 h1:5sz/EEAK+ls5wF+NeqDpk5+iNdMDXrh3z3nPnH1Wvgk=
github.com/bahlo/generic-list-go v0.2.0/go.mod h1:2KvAjgMlE5NNynlg/5iLrrCCZ2+5xWbdbCW3pNTGyYg=
github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMUs=
github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0=
github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
Expand Down Expand Up @@ -46,8 +50,13 @@ github.com/huandu/xstrings v1.3.3 h1:/Gcsuc1x8JVbJ9/rlye4xZnVAbEkGauT8lbebqcQws4
github.com/huandu/xstrings v1.3.3/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
github.com/imdario/mergo v0.3.11 h1:3tnifQM4i+fbajXKBHXWEH+KvNHqojZ778UH75j3bGA=
github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
github.com/invopop/jsonschema v0.12.0 h1:6ovsNSuvn9wEQVOyc72aycBMVQFKz7cPdMJn10CvzRI=
github.com/invopop/jsonschema v0.12.0/go.mod h1:ffZ5Km5SWWRAIN6wbDXItl95euhFz2uON45H2qjYt+0=
github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y=
github.com/leodido/go-urn v1.2.4 h1:XlAE/cm/ms7TE/VMVoduSpNBoyc2dOxHs5MZSwAN63Q=
github.com/leodido/go-urn v1.2.4/go.mod h1:7ZrI8mTSeBSHl/UaRyKQW1qZeMgak41ANeCNaVckg+4=
github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0=
github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc=
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
Expand Down Expand Up @@ -84,6 +93,8 @@ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=
github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/wk8/go-ordered-map/v2 v2.1.8 h1:5h/BUHu93oj4gIdvHHHGsScSTMijfx5PeYkE/fJgbpc=
github.com/wk8/go-ordered-map/v2 v2.1.8/go.mod h1:5nJHM5DyteebpVlHnWMV0rPz6Zp7+xBAnxjb1X5vnTw=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
Expand Down Expand Up @@ -141,6 +152,7 @@ golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtn
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
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.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=
Expand Down
2 changes: 1 addition & 1 deletion infra_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

"github.com/opslevel/opslevel-go/v2023"
"github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"
)

Expand Down
2 changes: 1 addition & 1 deletion integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

"github.com/opslevel/opslevel-go/v2023"
"github.com/opslevel/opslevel-go/v2024"

"github.com/rocktavious/autopilot/v2023"
)
Expand Down
2 changes: 1 addition & 1 deletion job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"
)

Expand Down
4 changes: 2 additions & 2 deletions json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package opslevel_test

import (
"encoding/json"
"github.com/hasura/go-graphql-client"
"testing"

"github.com/hasura/go-graphql-client"
ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"
)

Expand Down
2 changes: 1 addition & 1 deletion level_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"
)

Expand Down
2 changes: 1 addition & 1 deletion owner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"
)

Expand Down
2 changes: 1 addition & 1 deletion property_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"
)

Expand Down
2 changes: 1 addition & 1 deletion repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"

"github.com/rocktavious/autopilot/v2023"
)
Expand Down
4 changes: 2 additions & 2 deletions scalar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package opslevel_test

import (
"encoding/json"
"github.com/hasura/go-graphql-client"
"testing"

"github.com/hasura/go-graphql-client"
ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"
)

Expand Down
2 changes: 1 addition & 1 deletion scorecards_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"
)

Expand Down
2 changes: 1 addition & 1 deletion secrets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

"github.com/opslevel/opslevel-go/v2023"
"github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"
)

Expand Down
2 changes: 1 addition & 1 deletion service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"
)

Expand Down
2 changes: 1 addition & 1 deletion system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"
)

Expand Down
2 changes: 1 addition & 1 deletion tags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"

"github.com/rocktavious/autopilot/v2023"
)
Expand Down
2 changes: 1 addition & 1 deletion team_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"
)

Expand Down
2 changes: 1 addition & 1 deletion tools_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"
)

Expand Down
2 changes: 1 addition & 1 deletion user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opslevel_test
import (
"testing"

ol "github.com/opslevel/opslevel-go/v2023"
ol "github.com/opslevel/opslevel-go/v2024"
"github.com/rocktavious/autopilot/v2023"
)

Expand Down

0 comments on commit 4d44122

Please sign in to comment.