Skip to content

Commit e376357

Browse files
committed
move sdk to repo root directory
1 parent 47fb7cf commit e376357

26 files changed

Lines changed: 22 additions & 25 deletions
File renamed without changes.

Makefile

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
GOPATH = $(shell go env GOPATH)
22

33
# Test SDK
4-
.PHONY: test
54
test:
6-
cd sdk/test; go test -v
5+
cd test; go test -v
76

87
# GO SDK
9-
.PHONY: sdk
10-
sdk: sdk/*.go
11-
cd sdk; go build
8+
sdk: *.go
9+
go build .
1210

1311
# CLI App
14-
$(GOPATH)/bin/sqlc: sdk/*.go cli/sqlc.go
12+
$(GOPATH)/bin/sqlc: *.go cli/sqlc.go
1513
cd cli; go build -o $(GOPATH)/bin/sqlc
1614

1715
cli: $(GOPATH)/bin/sqlc
@@ -29,8 +27,8 @@ ifeq ($(wildcard $(GOPATH)/bin/gosec),)
2927
curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin
3028
endif
3129

32-
checksec: gosec sdk/*.go cli/*.go
33-
cd sdk; $(GOPATH)/bin/gosec -exclude=G304 .
30+
checksec: gosec *.go cli/*.go
31+
$(GOPATH)/bin/gosec -exclude=G304 .
3432
cd cli; $(GOPATH)/bin/gosec -exclude=G304,G302 .
3533

3634

@@ -41,14 +39,13 @@ ifeq ($(wildcard $(GOPATH)/bin/godoc),)
4139
endif
4240

4341
doc: godoc
44-
ifeq ($(wildcard ./src),)
45-
ln -s . src
46-
endif
4742
@echo "Hit CRTL-C to stop the documentation server..."
4843
@( sleep 1 && open http://localhost:6060/pkg/sdk/ ) &
4944
@$(GOPATH)/bin/godoc -http=:6060 -index -play -goroot ./
5045

5146
clean:
5247
rm -rf $(GOPATH)/bin/sqlc*
5348

54-
all: sdk cli test_dev1
49+
all: sdk cli test
50+
51+
.PHONY: test sdk
File renamed without changes.
File renamed without changes.
File renamed without changes.

cli/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/sqlitecloud/go/cli
1+
module github.com/sqlitecloud/go-cli
22

33
go 1.18
44

@@ -17,6 +17,6 @@ require (
1717
golang.org/x/sys v0.7.0 // indirect
1818
)
1919

20-
require github.com/sqlitecloud/go/sdk v0.0.0
20+
require github.com/sqlitecloud/go-sdk v0.0.0
2121

22-
replace github.com/sqlitecloud/go/sdk v0.0.0 => ../sdk
22+
replace github.com/sqlitecloud/go-sdk v0.0.0 => ../

cli/sqlc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
package main
1919

2020
import (
21-
sqlitecloud "github.com/sqlitecloud/go/sdk"
21+
sqlitecloud "github.com/sqlitecloud/go-sdk"
2222

2323
"bufio"
2424
"errors"
File renamed without changes.

sdk/go.mod renamed to go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/sqlitecloud/go/sdk
1+
module github.com/sqlitecloud/go-sdk
22

33
go 1.18
44

File renamed without changes.

0 commit comments

Comments
 (0)