-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
30 lines (23 loc) · 907 Bytes
/
Copy pathmakefile
File metadata and controls
30 lines (23 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.PHONY: modernize modernize-fix modernize-check
MODERNIZE_CMD = go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@v0.18.1
modernize: modernize-fix
modernize-fix:
@echo "Running gopls modernize with -fix..."
$(MODERNIZE_CMD) -test -fix ./...
modernize-check:
@echo "Checking if code needs modernization..."
$(MODERNIZE_CMD) -test ./...
build:
go build -o main
docker build -t ahmedakef/gotutor:latest -t gotutor .
# docker push ahmedakef/gotutor:latest
go-build:
go build -o main
updateExample: go-build
go build -gcflags='all=-N -l' -o example/source_debug example/main.go
./main exec example/source_debug
jq . output/steps.json > output/steps_formatted.json
mv output/steps_formatted.json output/steps.json
cp output/steps.json frontend/src/initialProgram
cp example/main.go frontend/src/initialProgram/main.txt
cp example/main.go backend/load-tests/main.txt