From 1fea8ca3345e0cf18f665fadcd7c8a67a8c94c14 Mon Sep 17 00:00:00 2001 From: huanghonghu Date: Fri, 17 Jan 2020 18:13:32 +0800 Subject: [PATCH 1/4] update license --- .travis.yml | 1 - Makefile | 4 + Makefile.common | 208 +++++++++++++++++++++++++++++++++++++++++++++++ context.go | 1 - go.mod | 3 + step.go | 1 - workflow.go | 4 +- workflow_test.go | 1 - 8 files changed, 216 insertions(+), 7 deletions(-) create mode 100644 Makefile create mode 100644 Makefile.common create mode 100644 go.mod diff --git a/.travis.yml b/.travis.yml index 2e6b0c2..8369ba5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ language: go install: - - go get github.com/smartystreets/goconvey/convey - go get github.com/go-trellis/workflow script: diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3799ae3 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +# GNU GPL v3 License +# Copyright (c) 2016 github.com:go-trellis + +include Makefile.common diff --git a/Makefile.common b/Makefile.common new file mode 100644 index 0000000..ee5f544 --- /dev/null +++ b/Makefile.common @@ -0,0 +1,208 @@ +# GNU GPL v3 License +# Copyright (c) 2016 github.com:go-trellis + +unexport GOBIN + +GO ?= go +GOFMT ?= $(GO)fmt +FIRST_GOPATH := $(firstword $(subst :, ,$(shell $(GO) env GOPATH))) +GOOPTS ?= +GOHOSTOS ?= $(shell $(GO) env GOHOSTOS) +GOHOSTARCH ?= $(shell $(GO) env GOHOSTARCH) + +GO_VERSION ?= $(shell $(GO) version) +GO_VERSION_NUMBER ?= $(word 3, $(GO_VERSION)) +PRE_GO_111 ?= $(shell echo $(GO_VERSION_NUMBER) | grep -E 'go1\.(10|[0-9])\.') + +GOVENDOR := +GO111MODULE := +ifeq (, $(PRE_GO_111)) + ifneq (,$(wildcard go.mod)) + # Enforce Go modules support just in case the directory is inside GOPATH (and for Travis CI). + GO111MODULE := on + + ifneq (,$(wildcard vendor)) + # Always use the local vendor/ directory to satisfy the dependencies. + GOOPTS := $(GOOPTS) -mod=vendor + endif + endif +else + ifneq (,$(wildcard go.mod)) + ifneq (,$(wildcard vendor)) +$(warning This repository requires Go >= 1.11 because of Go modules) +$(warning Some recipes may not work as expected as the current Go runtime is '$(GO_VERSION_NUMBER)') + endif + else + # This repository isn't using Go modules (yet). + GOVENDOR := $(FIRST_GOPATH)/bin/govendor + endif +endif + +pkgs = ./... + +ifeq (arm, $(GOHOSTARCH)) + GOHOSTARM ?= $(shell GOARM= $(GO) env GOARM) + GO_BUILD_PLATFORM ?= $(GOHOSTOS)-$(GOHOSTARCH)v$(GOHOSTARM) +else + GO_BUILD_PLATFORM ?= $(GOHOSTOS)-$(GOHOSTARCH) +endif + +GOLANGCI_LINT := +GOLANGCI_LINT_OPTS ?= +GOLANGCI_LINT_VERSION ?= v1.21.0 +# golangci-lint only supports linux, darwin and windows platforms on i386/amd64. +# windows isn't included here because of the path separator being different. +ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux darwin)) + ifeq ($(GOHOSTARCH),$(filter $(GOHOSTARCH),amd64 i386)) + GOLANGCI_LINT := $(FIRST_GOPATH)/bin/golangci-lint + endif +endif + +PREFIX ?= $(shell pwd) +BIN_DIR ?= $(shell pwd) +DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD)) +DOCKERFILE_PATH ?= ./Dockerfile +DOCKERBUILD_CONTEXT ?= ./ +DOCKER_REPO ?= prom + +DOCKER_ARCHS ?= amd64 + +BUILD_DOCKER_ARCHS = $(addprefix common-docker-,$(DOCKER_ARCHS)) +PUBLISH_DOCKER_ARCHS = $(addprefix common-docker-publish-,$(DOCKER_ARCHS)) +TAG_DOCKER_ARCHS = $(addprefix common-docker-tag-latest-,$(DOCKER_ARCHS)) + +ifeq ($(GOHOSTARCH),amd64) + ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux freebsd darwin windows)) + # Only supported on amd64 + test-flags := -race + endif +endif + +# This rule is used to forward a target like "build" to "common-build". This +# allows a new "build" target to be defined in a Makefile which includes this +# one and override "common-build" without override warnings. +%: common-% ; + +.PHONY: common-all +common-all: precheck style check_license lint unused test # build test + +.PHONY: common-style +common-style: + @echo ">> checking code style" + @fmtRes=$$($(GOFMT) -d $$(find . -path ./vendor -prune -o -name '*.go' -print)); \ + if [ -n "$${fmtRes}" ]; then \ + echo "gofmt checking failed!"; echo "$${fmtRes}"; echo; \ + echo "Please ensure you are using $$($(GO) version) for formatting code."; \ + exit 1; \ + fi + +.PHONY: common-check_license +common-check_license: + @echo ">> checking license header" + @licRes=$$(for file in $$(find . -type f -iname '*.go' ! -path './vendor/*') ; do \ + awk 'NR<=3' $$file | grep -Eq "(Copyright|generated|GENERATED)" || echo $$file; \ + done); \ + if [ -n "$${licRes}" ]; then \ + echo "license header checking failed:"; echo "$${licRes}"; \ + exit 1; \ + fi + +.PHONY: common-deps +common-deps: + @echo ">> getting dependencies" +ifdef GO111MODULE + GO111MODULE=$(GO111MODULE) $(GO) mod download +else + $(GO) get $(GOOPTS) -t ./... +endif + +.PHONY: common-test-short +common-test-short: + @echo ">> running short tests" + GO111MODULE=$(GO111MODULE) $(GO) test -short $(GOOPTS) $(pkgs) + +.PHONY: common-test +common-test: + @echo ">> running all tests" + GO111MODULE=$(GO111MODULE) $(GO) test $(test-flags) $(GOOPTS) $(pkgs) + +.PHONY: common-format +common-format: + @echo ">> formatting code" + GO111MODULE=$(GO111MODULE) $(GO) fmt $(pkgs) + +.PHONY: common-vet +common-vet: + @echo ">> vetting code" + GO111MODULE=$(GO111MODULE) $(GO) vet $(GOOPTS) $(pkgs) + +.PHONY: common-lint +common-lint: $(GOLANGCI_LINT) +ifdef GOLANGCI_LINT + @echo ">> running golangci-lint" +ifdef GO111MODULE +# 'go list' needs to be executed before staticcheck to prepopulate the modules cache. +# Otherwise staticcheck might fail randomly for some reason not yet explained. + GO111MODULE=$(GO111MODULE) $(GO) list -e -compiled -test=true -export=false -deps=true -find=false -tags= -- ./... > /dev/null + GO111MODULE=$(GO111MODULE) $(GOLANGCI_LINT) run $(GOLANGCI_LINT_OPTS) $(pkgs) +else + $(GOLANGCI_LINT) run $(pkgs) +endif +endif + +# For backward-compatibility. +.PHONY: common-staticcheck +common-staticcheck: lint + +.PHONY: common-unused +common-unused: $(GOVENDOR) +ifdef GOVENDOR + @echo ">> running check for unused packages" + @$(GOVENDOR) list +unused | grep . && exit 1 || echo 'No unused packages' +else +ifdef GO111MODULE + @echo ">> running check for unused/missing packages in go.mod" + GO111MODULE=$(GO111MODULE) $(GO) mod tidy +ifeq (,$(wildcard vendor)) + @git diff --exit-code -- go.sum go.mod +else + @echo ">> running check for unused packages in vendor/" + GO111MODULE=$(GO111MODULE) $(GO) mod vendor + @git diff --exit-code -- go.sum go.mod vendor/ +endif +endif +endif + +.PHONY: proto +proto: + @echo ">> generating code from proto files" + @./scripts/genproto.sh + +ifdef GOLANGCI_LINT +$(GOLANGCI_LINT): + mkdir -p $(FIRST_GOPATH)/bin + curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/$(GOLANGCI_LINT_VERSION)/install.sh \ + | sed -e '/install -d/d' \ + | sh -s -- -b $(FIRST_GOPATH)/bin $(GOLANGCI_LINT_VERSION) +endif + +ifdef GOVENDOR +.PHONY: $(GOVENDOR) +$(GOVENDOR): + GOOS= GOARCH= $(GO) get -u github.com/kardianos/govendor +endif + +.PHONY: precheck +precheck:: + +define PRECHECK_COMMAND_template = +precheck:: $(1)_precheck + +PRECHECK_COMMAND_$(1) ?= $(1) $$(strip $$(PRECHECK_OPTIONS_$(1))) +.PHONY: $(1)_precheck +$(1)_precheck: + @if ! $$(PRECHECK_COMMAND_$(1)) 1>/dev/null 2>&1; then \ + echo "Execution of '$$(PRECHECK_COMMAND_$(1))' command failed. Is $(1) installed?"; \ + exit 1; \ + fi +endef \ No newline at end of file diff --git a/context.go b/context.go index 033fd11..6d00bf6 100644 --- a/context.go +++ b/context.go @@ -1,5 +1,4 @@ // MIT License - // Copyright (c) 2015 go-trellis package workflow diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..69142d2 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/go-trellis/workflow + +go 1.13 diff --git a/step.go b/step.go index 6efd2da..ee31621 100644 --- a/step.go +++ b/step.go @@ -1,5 +1,4 @@ // MIT License - // Copyright (c) 2015 go-trellis package workflow diff --git a/workflow.go b/workflow.go index baddb20..08f505c 100644 --- a/workflow.go +++ b/workflow.go @@ -1,5 +1,4 @@ // MIT License - // Copyright (c) 2015 go-trellis package workflow @@ -36,7 +35,7 @@ func (p *Workflow) Run(context Context) error { p.loadQueue(p.start) for _, step := range p.queue { if p.lastStepConcurrency && step.IsLast { - go p.doRunStep(step, context) + go func() { _ = p.doRunStep(step, context) }() return nil } if err := p.doRunStep(step, context); err != nil { @@ -97,5 +96,4 @@ func (p *Workflow) loadQueue(s *Step) { p.inQueue[s] = true p.queue = append(p.queue, s) } - return } diff --git a/workflow_test.go b/workflow_test.go index 49823bb..f303cfe 100644 --- a/workflow_test.go +++ b/workflow_test.go @@ -1,5 +1,4 @@ // MIT License - // Copyright (c) 2015 go-trellis package workflow_test From 4fd31d3cf13d077ee2e1e92bd304df5c57518323 Mon Sep 17 00:00:00 2001 From: Henry Huang Date: Wed, 20 Jan 2021 03:03:17 +0800 Subject: [PATCH 2/4] update group name --- .travis.yml | 7 ------- LICENSE | 2 +- Makefile | 2 +- Makefile.common | 2 +- README.md | 6 +----- context.go | 2 +- go.mod | 3 --- step.go | 2 +- workflow.go | 2 +- workflow_test.go | 4 ++-- 10 files changed, 9 insertions(+), 23 deletions(-) delete mode 100644 .travis.yml delete mode 100644 go.mod diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8369ba5..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: go - -install: - - go get github.com/go-trellis/workflow - -script: - - go test -v ./... \ No newline at end of file diff --git a/LICENSE b/LICENSE index 489e1da..6da0edd 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2015 go-trellis +Copyright (c) 2015 iTrellis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Makefile b/Makefile index 3799ae3..05706b4 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ # GNU GPL v3 License -# Copyright (c) 2016 github.com:go-trellis +# Copyright (c) 2016 github.com:iTrellis include Makefile.common diff --git a/Makefile.common b/Makefile.common index ee5f544..a028ce4 100644 --- a/Makefile.common +++ b/Makefile.common @@ -1,5 +1,5 @@ # GNU GPL v3 License -# Copyright (c) 2016 github.com:go-trellis +# Copyright (c) 2016 github.com:iTrellis unexport GOBIN diff --git a/README.md b/README.md index 88257d6..6aeecbd 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,8 @@ # workflow -## Build - -* [![Build Status](https://travis-ci.org/go-trellis/workflow.png)](https://travis-ci.org/go-trellis/workflow) - ## Installation -go get github.com/go-trellis/workflow +go get github.com/iTrellis/workflow ## Usage diff --git a/context.go b/context.go index 6d00bf6..98e9f30 100644 --- a/context.go +++ b/context.go @@ -1,5 +1,5 @@ // MIT License -// Copyright (c) 2015 go-trellis +// Copyright (c) 2015 iTrellis package workflow diff --git a/go.mod b/go.mod deleted file mode 100644 index 69142d2..0000000 --- a/go.mod +++ /dev/null @@ -1,3 +0,0 @@ -module github.com/go-trellis/workflow - -go 1.13 diff --git a/step.go b/step.go index ee31621..fbb1d49 100644 --- a/step.go +++ b/step.go @@ -1,5 +1,5 @@ // MIT License -// Copyright (c) 2015 go-trellis +// Copyright (c) 2015 iTrellis package workflow diff --git a/workflow.go b/workflow.go index 08f505c..1bef362 100644 --- a/workflow.go +++ b/workflow.go @@ -1,5 +1,5 @@ // MIT License -// Copyright (c) 2015 go-trellis +// Copyright (c) 2015 iTrellis package workflow diff --git a/workflow_test.go b/workflow_test.go index f303cfe..d72df1f 100644 --- a/workflow_test.go +++ b/workflow_test.go @@ -1,5 +1,5 @@ // MIT License -// Copyright (c) 2015 go-trellis +// Copyright (c) 2015 iTrellis package workflow_test @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/go-trellis/workflow" + "github.com/iTrellis/workflow" ) func TestWorkflow(t *testing.T) { From 22b8fd0e7d7906207af3d8c99064f0fd4fbf5f39 Mon Sep 17 00:00:00 2001 From: Henry Huang Date: Sat, 23 Oct 2021 21:38:30 +0800 Subject: [PATCH 3/4] update trellis domain --- Makefile | 4 - Makefile.common | 208 ----------------------------------------------- README.md | 2 +- workflow_test.go | 2 +- 4 files changed, 2 insertions(+), 214 deletions(-) delete mode 100644 Makefile delete mode 100644 Makefile.common diff --git a/Makefile b/Makefile deleted file mode 100644 index 05706b4..0000000 --- a/Makefile +++ /dev/null @@ -1,4 +0,0 @@ -# GNU GPL v3 License -# Copyright (c) 2016 github.com:iTrellis - -include Makefile.common diff --git a/Makefile.common b/Makefile.common deleted file mode 100644 index a028ce4..0000000 --- a/Makefile.common +++ /dev/null @@ -1,208 +0,0 @@ -# GNU GPL v3 License -# Copyright (c) 2016 github.com:iTrellis - -unexport GOBIN - -GO ?= go -GOFMT ?= $(GO)fmt -FIRST_GOPATH := $(firstword $(subst :, ,$(shell $(GO) env GOPATH))) -GOOPTS ?= -GOHOSTOS ?= $(shell $(GO) env GOHOSTOS) -GOHOSTARCH ?= $(shell $(GO) env GOHOSTARCH) - -GO_VERSION ?= $(shell $(GO) version) -GO_VERSION_NUMBER ?= $(word 3, $(GO_VERSION)) -PRE_GO_111 ?= $(shell echo $(GO_VERSION_NUMBER) | grep -E 'go1\.(10|[0-9])\.') - -GOVENDOR := -GO111MODULE := -ifeq (, $(PRE_GO_111)) - ifneq (,$(wildcard go.mod)) - # Enforce Go modules support just in case the directory is inside GOPATH (and for Travis CI). - GO111MODULE := on - - ifneq (,$(wildcard vendor)) - # Always use the local vendor/ directory to satisfy the dependencies. - GOOPTS := $(GOOPTS) -mod=vendor - endif - endif -else - ifneq (,$(wildcard go.mod)) - ifneq (,$(wildcard vendor)) -$(warning This repository requires Go >= 1.11 because of Go modules) -$(warning Some recipes may not work as expected as the current Go runtime is '$(GO_VERSION_NUMBER)') - endif - else - # This repository isn't using Go modules (yet). - GOVENDOR := $(FIRST_GOPATH)/bin/govendor - endif -endif - -pkgs = ./... - -ifeq (arm, $(GOHOSTARCH)) - GOHOSTARM ?= $(shell GOARM= $(GO) env GOARM) - GO_BUILD_PLATFORM ?= $(GOHOSTOS)-$(GOHOSTARCH)v$(GOHOSTARM) -else - GO_BUILD_PLATFORM ?= $(GOHOSTOS)-$(GOHOSTARCH) -endif - -GOLANGCI_LINT := -GOLANGCI_LINT_OPTS ?= -GOLANGCI_LINT_VERSION ?= v1.21.0 -# golangci-lint only supports linux, darwin and windows platforms on i386/amd64. -# windows isn't included here because of the path separator being different. -ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux darwin)) - ifeq ($(GOHOSTARCH),$(filter $(GOHOSTARCH),amd64 i386)) - GOLANGCI_LINT := $(FIRST_GOPATH)/bin/golangci-lint - endif -endif - -PREFIX ?= $(shell pwd) -BIN_DIR ?= $(shell pwd) -DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD)) -DOCKERFILE_PATH ?= ./Dockerfile -DOCKERBUILD_CONTEXT ?= ./ -DOCKER_REPO ?= prom - -DOCKER_ARCHS ?= amd64 - -BUILD_DOCKER_ARCHS = $(addprefix common-docker-,$(DOCKER_ARCHS)) -PUBLISH_DOCKER_ARCHS = $(addprefix common-docker-publish-,$(DOCKER_ARCHS)) -TAG_DOCKER_ARCHS = $(addprefix common-docker-tag-latest-,$(DOCKER_ARCHS)) - -ifeq ($(GOHOSTARCH),amd64) - ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux freebsd darwin windows)) - # Only supported on amd64 - test-flags := -race - endif -endif - -# This rule is used to forward a target like "build" to "common-build". This -# allows a new "build" target to be defined in a Makefile which includes this -# one and override "common-build" without override warnings. -%: common-% ; - -.PHONY: common-all -common-all: precheck style check_license lint unused test # build test - -.PHONY: common-style -common-style: - @echo ">> checking code style" - @fmtRes=$$($(GOFMT) -d $$(find . -path ./vendor -prune -o -name '*.go' -print)); \ - if [ -n "$${fmtRes}" ]; then \ - echo "gofmt checking failed!"; echo "$${fmtRes}"; echo; \ - echo "Please ensure you are using $$($(GO) version) for formatting code."; \ - exit 1; \ - fi - -.PHONY: common-check_license -common-check_license: - @echo ">> checking license header" - @licRes=$$(for file in $$(find . -type f -iname '*.go' ! -path './vendor/*') ; do \ - awk 'NR<=3' $$file | grep -Eq "(Copyright|generated|GENERATED)" || echo $$file; \ - done); \ - if [ -n "$${licRes}" ]; then \ - echo "license header checking failed:"; echo "$${licRes}"; \ - exit 1; \ - fi - -.PHONY: common-deps -common-deps: - @echo ">> getting dependencies" -ifdef GO111MODULE - GO111MODULE=$(GO111MODULE) $(GO) mod download -else - $(GO) get $(GOOPTS) -t ./... -endif - -.PHONY: common-test-short -common-test-short: - @echo ">> running short tests" - GO111MODULE=$(GO111MODULE) $(GO) test -short $(GOOPTS) $(pkgs) - -.PHONY: common-test -common-test: - @echo ">> running all tests" - GO111MODULE=$(GO111MODULE) $(GO) test $(test-flags) $(GOOPTS) $(pkgs) - -.PHONY: common-format -common-format: - @echo ">> formatting code" - GO111MODULE=$(GO111MODULE) $(GO) fmt $(pkgs) - -.PHONY: common-vet -common-vet: - @echo ">> vetting code" - GO111MODULE=$(GO111MODULE) $(GO) vet $(GOOPTS) $(pkgs) - -.PHONY: common-lint -common-lint: $(GOLANGCI_LINT) -ifdef GOLANGCI_LINT - @echo ">> running golangci-lint" -ifdef GO111MODULE -# 'go list' needs to be executed before staticcheck to prepopulate the modules cache. -# Otherwise staticcheck might fail randomly for some reason not yet explained. - GO111MODULE=$(GO111MODULE) $(GO) list -e -compiled -test=true -export=false -deps=true -find=false -tags= -- ./... > /dev/null - GO111MODULE=$(GO111MODULE) $(GOLANGCI_LINT) run $(GOLANGCI_LINT_OPTS) $(pkgs) -else - $(GOLANGCI_LINT) run $(pkgs) -endif -endif - -# For backward-compatibility. -.PHONY: common-staticcheck -common-staticcheck: lint - -.PHONY: common-unused -common-unused: $(GOVENDOR) -ifdef GOVENDOR - @echo ">> running check for unused packages" - @$(GOVENDOR) list +unused | grep . && exit 1 || echo 'No unused packages' -else -ifdef GO111MODULE - @echo ">> running check for unused/missing packages in go.mod" - GO111MODULE=$(GO111MODULE) $(GO) mod tidy -ifeq (,$(wildcard vendor)) - @git diff --exit-code -- go.sum go.mod -else - @echo ">> running check for unused packages in vendor/" - GO111MODULE=$(GO111MODULE) $(GO) mod vendor - @git diff --exit-code -- go.sum go.mod vendor/ -endif -endif -endif - -.PHONY: proto -proto: - @echo ">> generating code from proto files" - @./scripts/genproto.sh - -ifdef GOLANGCI_LINT -$(GOLANGCI_LINT): - mkdir -p $(FIRST_GOPATH)/bin - curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/$(GOLANGCI_LINT_VERSION)/install.sh \ - | sed -e '/install -d/d' \ - | sh -s -- -b $(FIRST_GOPATH)/bin $(GOLANGCI_LINT_VERSION) -endif - -ifdef GOVENDOR -.PHONY: $(GOVENDOR) -$(GOVENDOR): - GOOS= GOARCH= $(GO) get -u github.com/kardianos/govendor -endif - -.PHONY: precheck -precheck:: - -define PRECHECK_COMMAND_template = -precheck:: $(1)_precheck - -PRECHECK_COMMAND_$(1) ?= $(1) $$(strip $$(PRECHECK_OPTIONS_$(1))) -.PHONY: $(1)_precheck -$(1)_precheck: - @if ! $$(PRECHECK_COMMAND_$(1)) 1>/dev/null 2>&1; then \ - echo "Execution of '$$(PRECHECK_COMMAND_$(1))' command failed. Is $(1) installed?"; \ - exit 1; \ - fi -endef \ No newline at end of file diff --git a/README.md b/README.md index 6aeecbd..cda3fb7 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## Installation -go get github.com/iTrellis/workflow +go get trellis.tech/iTrellis/workflow ## Usage diff --git a/workflow_test.go b/workflow_test.go index d72df1f..24eb248 100644 --- a/workflow_test.go +++ b/workflow_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/iTrellis/workflow" + "trellis.tech/iTrellis/workflow" ) func TestWorkflow(t *testing.T) { From 7627f085b8f5b91427ff6edc4f056b9c32a0e1a8 Mon Sep 17 00:00:00 2001 From: Henry Huang Date: Sat, 23 Oct 2021 21:40:28 +0800 Subject: [PATCH 4/4] add gomod --- go.mod | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 go.mod diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..a73bf6d --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module trellis.tech/iTrellis/workflow + +go 1.16