aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.gitignore1
-rw-r--r--Makefile2
-rw-r--r--resources.go1
3 files changed, 4 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 324f5c6..c6e998b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/forge
/version.go
+/vendor
diff --git a/Makefile b/Makefile
index 366a154..b839c7d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,9 @@
.PHONY: clean version.go
forge: $(filter-out forge,$(wildcard *)) version.go
+ go mod vendor
go build -o $@
+ $(RM) -r vendor
version.go:
printf 'package main\nconst VERSION="%s"\n' $(shell git describe --tags --long --always --dirty) > $@
diff --git a/resources.go b/resources.go
index 44d685f..2244007 100644
--- a/resources.go
+++ b/resources.go
@@ -13,6 +13,7 @@ import (
//go:embed Makefile
//go:embed schema.sql
//go:embed static/* templates/*
+//go:embed vendor/*
var source_fs embed.FS
var source_handler http.Handler