more notes

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-11-03 01:41:00 -05:00
parent bd1ed6f513
commit 84aeec7dde
1 changed files with 4 additions and 12 deletions

View File

@ -3,10 +3,13 @@
VERSION = $(shell git describe --tags) VERSION = $(shell git describe --tags)
# create the go.mod and go.sum if this is a brand new repo # create the go.mod and go.sum if this is a brand new repo
# REDOMOD = $(shell if [ -e go.mod ]; then echo go.mod; else echo no go mod; fi)
REDOMOD = $(shell if [ -e go.sum ]; then echo go.sum exists; else GO111MODULE= go mod init; GO111MODULE= go mod tidy; fi) REDOMOD = $(shell if [ -e go.sum ]; then echo go.sum exists; else GO111MODULE= go mod init; GO111MODULE= go mod tidy; fi)
check_files: check_files:
@echo
@echo the build is complicated right now because you need
@echo the google version of protoc-gen-go which is not the one in debian sid yet
@echo
@if [ -f "/usr/bin/bin/protoc-gen-go" ]; then \ @if [ -f "/usr/bin/bin/protoc-gen-go" ]; then \
echo "the protoc-gen-go package is old in debian sid right now"; \ echo "the protoc-gen-go package is old in debian sid right now"; \
echo "for now, remove it"; \ echo "for now, remove it"; \
@ -25,17 +28,6 @@ check_files:
make all make all
all: all:
@echo
@echo the build is complicated right now because you need
@echo the google version of protoc-gen-go which is not the one in debian
@echo sid right now. until that is fixed, this is a pain in the ass
@echo
@echo also, makefiles are awesome, but only for simple shit. this shit is
@echo way to complicated to be here so Im rather leaning towards making
@echo a go binary just to build this
@echo
@echo for now, add mirrors.wit.com to apt and run 'apt install virtigo'
@echo
make build make build
./virtigo --version ./virtigo --version
@echo build worked @echo build worked