Skip to content

Commit f0709e0

Browse files
committed
fix: don't require node to compile golang
1 parent f6bd055 commit f0709e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

golang/cosmos/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
NAME := $(shell node -e 'console.log(require("./package.json").name)')
2-
VERSION := $(shell node -e 'console.log(require("./package.json").version)')
1+
NAME := $(shell sed -ne 's/.*"name": "\([^"]*\)".*/\1/p' package.json)
2+
VERSION := $(shell sed -ne 's/.*"version": "\([^"]*\)".*/\1/p' package.json)
33
COMMIT = $(shell hash=`git rev-parse --short HEAD 2>/dev/null`; if test -n "$$hash"; then echo $$hash`git diff --quiet || echo -dirty`; else cat git-revision.txt; fi)
44

55
default: all

0 commit comments

Comments
 (0)