Skip to content

Commit 3732d5c

Browse files
committed
rename dir
1 parent a722a52 commit 3732d5c

30 files changed

+27
-8
lines changed

Diff for: .github/sdk-gen-config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"packageVersion": "{VERSION}",
3-
"packageName": "databox-go",
3+
"packageName": "databox",
44
"goVersion":"1.22",
55
"goModule": "github.com/databox/databox-go"
66
}

Diff for: .github/workflows/generate_sdk_code.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161

6262
- name: Remove old SDK
6363
run: |
64-
rm -rf src/*
64+
rm -rf databox/*
6565
rm -rf docs/*
6666
rm -f go.mod
6767
rm -f go.sum
@@ -79,12 +79,14 @@ jobs:
7979
- name: Generate SDK
8080
run: |
8181
java --version
82-
java -jar ${{ runner.temp }}/openapi-generator-cli.jar generate -i ${{ runner.temp }}/openapispec/openapi.yml -g go -o ./src -c ${{ runner.temp }}/${{ env.CONFIG_FILE }} --skip-validate-spec -t ./codegen-template
83-
cp ./src/README.md ./README.md
84-
cp -r ./src/docs ./docs
85-
cp ./src/go.mod ./go.mod
86-
cp ./src/go.sum ./go.sum
87-
82+
java -jar ${{ runner.temp }}/openapi-generator-cli.jar generate -i ${{ runner.temp }}/openapispec/openapi.yml -g go -o ./databox -c ${{ runner.temp }}/${{ env.CONFIG_FILE }} --skip-validate-spec -t ./codegen-template
83+
cp ./databox/README.md ./README.md
84+
cp -r ./databox/docs ./docs
85+
cp ./databox/go.mod ./go.mod
86+
cp ./databox/go.sum ./go.sum
87+
rm -f ./databox/go.mod
88+
rm -f ./databox/go.sum
89+
8890
- name: Create Pull Request
8991
id: cpr
9092
uses: peter-evans/create-pull-request@v6

Diff for: src/.gitignore renamed to databox/.gitignore

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: src/.travis.yml renamed to databox/.travis.yml

File renamed without changes.

Diff for: src/README.md renamed to databox/README.md

File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: src/client.go renamed to databox/client.go

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: src/git_push.sh renamed to databox/git_push.sh

File renamed without changes.

Diff for: src/go.mod renamed to databox/go.mod

File renamed without changes.

Diff for: src/go.sum renamed to databox/go.sum

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: src/response.go renamed to databox/response.go

File renamed without changes.
File renamed without changes.

Diff for: src/utils.go renamed to databox/utils.go

File renamed without changes.

Diff for: example/push-data/go.mod

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module github.com/databox/databox-go/example
2+
3+
go 1.22
4+
5+
toolchain go1.22.5
6+
7+
require github.com/databox/databox-go v0.3.3 // indirect

Diff for: example/push-data/go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github.com/databox/databox-go v0.3.3 h1:ckkLdOX3nwV+wHyHRkh1xRup6ySmsOuRu74NZfIa+oQ=
2+
github.com/databox/databox-go v0.3.3/go.mod h1:2/mXuvPbAeaAmHiGT88sidO+rSjMHCjx1TqXyXrL5J0=

Diff for: example/push-data/main.go

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package main
2+
3+
import databox "github.com/databox/databox-go/src"
4+
5+
const t = "26c8df25ec394084bd7c0d3d018e6e3c"
6+
7+
func main() {
8+
}

0 commit comments

Comments
 (0)