Skip to content

Commit

Permalink
chore(deps): bump go.einride.tech/sage from 0.128.0 to 0.143.0 in /.sage
Browse files Browse the repository at this point in the history
Bumps [go.einride.tech/sage](https://github.com/einride/sage) from 0.128.0 to 0.143.0.
- [Release notes](https://github.com/einride/sage/releases)
- [Commits](einride/sage@v0.128.0...v0.143.0)

---
updated-dependencies:
- dependency-name: go.einride.tech/sage
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
  • Loading branch information
dependabot[bot] authored and hashemmm96 committed Aug 3, 2022
1 parent f73f5de commit 07fb191
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .sage/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module sage

go 1.17

require go.einride.tech/sage v0.128.0
require go.einride.tech/sage v0.143.0
4 changes: 2 additions & 2 deletions .sage/go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
go.einride.tech/sage v0.128.0 h1:Oh0bUf5sYJ56ujmBORj2b/js8YnXVtzVW54RQXgTRr8=
go.einride.tech/sage v0.128.0/go.mod h1:EzV5uciFX7/2ho8EKB5K9JghOfXIxlzs694b+Tkl5GQ=
go.einride.tech/sage v0.143.0 h1:MXImpXyEh7nNoAJu5dYWGd6i+4Unt9oBF/poqx7q3t8=
go.einride.tech/sage v0.143.0/go.mod h1:EzV5uciFX7/2ho8EKB5K9JghOfXIxlzs694b+Tkl5GQ=
30 changes: 25 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,37 @@

sagefile := .sage/bin/sagefile

$(sagefile): .sage/go.mod .sage/*.go
@cd .sage && go mod tidy && go run .
# Setup Go.
go := $(shell command -v go 2>/dev/null)
ifndef go
SAGE_GO_VERSION ?= 1.18.4
export GOROOT := .sage/tools/go/$(SAGE_GO_VERSION)/go
export PATH := $(PATH):$(GOROOT)/bin
go := $(GOROOT)/bin/go
os := $(shell uname | tr '[:upper:]' '[:lower:]')
arch := $(shell uname -m)
ifeq ($(arch),x86_64)
arch := amd64
endif
$(go):
$(info installing Go $(SAGE_GO_VERSION)...)
@mkdir -p $(dir $(GOROOT))
@curl -sSL https://go.dev/dl/go$(SAGE_GO_VERSION).$(os)-$(arch).tar.gz | tar xz -C $(dir $(GOROOT))
@touch $(GOROOT)/go.mod
@chmod +x $(go)
endif

.PHONY: $(sagefile)
$(sagefile): $(go)
@cd .sage && $(go) mod tidy && $(go) run .

.PHONY: sage
sage:
@git clean -fxq $(sagefile)
@$(MAKE) $(sagefile)

.PHONY: update-sage
update-sage:
@cd .sage && go get -d go.einride.tech/sage@latest && go mod tidy && go run .
update-sage: $(go)
@cd .sage && $(go) get -d go.einride.tech/sage@latest && $(go) mod tidy && $(go) run .

.PHONY: clean-sage
clean-sage:
Expand Down

0 comments on commit 07fb191

Please sign in to comment.