-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: migrate to new aperturerobotics/common pattern
Signed-off-by: Christian Stewart <[email protected]>
- Loading branch information
Showing
13 changed files
with
47 additions
and
1,345 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./vendor/github.com/aperturerobotics/common/.eslintrc.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./vendor/github.com/aperturerobotics/common/.golangci.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# https://github.com/aperturerobotics/template | ||
PROJECT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) | ||
SHELL:=bash | ||
MAKEFLAGS += --no-print-directory | ||
|
||
GO_VENDOR_DIR := ./vendor | ||
COMMON_DIR := $(GO_VENDOR_DIR)/github.com/aperturerobotics/common | ||
COMMON_MAKEFILE := $(COMMON_DIR)/Makefile | ||
|
||
export GO111MODULE=on | ||
undefine GOARCH | ||
undefine GOOS | ||
|
||
.PHONY: $(MAKECMDGOALS) help | ||
|
||
all: help | ||
|
||
$(COMMON_MAKEFILE): | ||
go mod vendor | ||
if [ ! -f $(COMMON_MAKEFILE) ]; then \ | ||
echo "Please add github.com/aperturerobotics/common to your go.mod."; \ | ||
exit 1; \ | ||
fi | ||
|
||
$(MAKECMDGOALS): $(COMMON_MAKEFILE) | ||
@$(MAKE) -C $(COMMON_DIR) PROJECT_DIR="$(PROJECT_DIR)" $@ | ||
|
||
%: $(COMMON_MAKEFILE) | ||
@$(MAKE) -C $(COMMON_DIR) PROJECT_DIR="$(PROJECT_DIR)" $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//go:build deps_only | ||
// +build deps_only | ||
|
||
package template | ||
|
||
import ( | ||
// _ imports common with the Makefile and tools | ||
_ "github.com/aperturerobotics/common" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.