Skip to content

Commit

Permalink
fix(go): remove unused dependencies (#598)
Browse files Browse the repository at this point in the history
  • Loading branch information
theSoenke authored Apr 23, 2024
1 parent ec4449a commit 413abb4
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
6 changes: 3 additions & 3 deletions clients/go/test/api_custom_metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ package phrase

import (
"context"
"io/ioutil"
"io"
"net/http"
"net/http/httptest"
"testing"

"github.com/phrase/phrase-go/v2"
"github.com/phrase/phrase-go/v3" // x-release-please-major
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

func Test_phrase_CustomMetadataApiService(t *testing.T) {
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
// Test request parameters
b, err := ioutil.ReadAll(r.Body)
b, err := io.ReadAll(r.Body)
if err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion clients/go/test/api_jobs_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clients/go/test/api_locales_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion openapi-generator/templates/go/README.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"context"
"fmt"

phrase "github.com/phrase/phrase-go/v3"
phrase "github.com/phrase/phrase-go/v3" // x-release-please-major
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion openapi-generator/templates/go/go.mod.mustache
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module {{gitHost}}/{{gitUserId}}/{{gitRepoId}}{{#isGoSubmodule}}/{{packageName}}{{/isGoSubmodule}}/v3
module {{gitHost}}/{{gitUserId}}/{{gitRepoId}}{{#isGoSubmodule}}/{{packageName}}{{/isGoSubmodule}}/v3 // x-release-please-major

go 1.14

Expand Down
9 changes: 7 additions & 2 deletions release-please/config-go.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,14 @@
"path": "openapi-generator/go_lang.yaml",
"jsonpath": "$.packageVersion"
},
"clients/cli/go.mod"
"clients/cli/go.mod",
"openapi-generator/templates/go/README.mustache",
"openapi-generator/templates/go/go.mod.mustache",
"clients/go/test/api_custom_metadata_test.go",
"clients/go/test/api_jobs_test.go",
"clients/go/test/api_locales_test.go"
]
}
},
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}
}

0 comments on commit 413abb4

Please sign in to comment.