Skip to content

Commit 6233664

Browse files
author
Adriano Santos
committed
fix: follow lua standards to versioning
1 parent a095790 commit 6233664

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

Makefile

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,21 @@ clean:
2727

2828
deps:
2929
echo "Installing dependencies..."
30-
sudo luarocks install lua-protobuf
31-
sudo luarocks install luasocket
32-
sudo luarocks install lua-cjson
30+
luarocks install --local lua-protobuf
31+
luarocks install --local luasocket
32+
luarocks install --local lua-cjson
3333

3434
install: build
3535
echo "Installing the project..."
36-
luarocks make --local spawn-sdk-0.1.0.rockspec
36+
luarocks make --local spawn-lua-sdk-0.1-0.rockspec
3737

3838
test:
3939
go test -v ./...
4040

4141
compile-proto:
4242
echo "Compiling protobuf files..."
43-
protoc --lua_out=src/generated/ \
44-
-I=${GOOGLE_PROTO_ROOT} \
45-
${GOOGLE_PROTO_FILES}
46-
47-
protoc --lua_out=src/generated/ \
48-
-I=${SPAWN_PROTO_ROOT} \
49-
${SPAWN_PROTO_FILES}
43+
docker run --rm -v $(pwd):/work -w /work znly/protoc --plugin=protoc-gen-lua=/usr/bin/protoc-gen-lua --lua_out=src/generated -I=${GOOGLE_PROTO_ROOT} ${GOOGLE_PROTO_FILES}
44+
docker run --rm -v $(pwd):/work -w /work znly/protoc --plugin=protoc-gen-lua=/usr/bin/protoc-gen-lua --lua_out=src/generated -I=${SPAWN_PROTO_ROOT} ${SPAWN_PROTO_FILES}
5045

5146

5247

spawn-sdk-0.1.0.rockspec renamed to spawn-lua-sdk-0.1-0.rockspec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package = "spawn-lua-sdk"
2-
version = "0.1.0"
2+
version = "0.1-0"
33
source = {
44
url = "git://github.com/eigr-labs/spawn-lua-sdk"
55
}
@@ -9,7 +9,6 @@ description = {
99
license = "Apache-2.0"
1010
}
1111
dependencies = {
12-
"lua >= 5.3",
1312
"lua-protobuf >= 0.3.3",
1413
"luasocket >= 3.1.0",
1514
"lua-cjson >= 2.1.0"

0 commit comments

Comments
 (0)