mirror of
				https://github.com/cheat/cheat.git
				synced 2025-11-04 07:45:28 +01:00 
			
		
		
		
	feat: updates build scripts
Build scripts now invoke `go mod vendor` and `go mod tidy` early in the build process, to ensure that the `vendor` directory stays consistent with the `go.mod` et. al.
This commit is contained in:
		@@ -4,6 +4,9 @@
 | 
			
		||||
BINDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 | 
			
		||||
APPDIR=$(readlink -f "$BINDIR/..")
 | 
			
		||||
 | 
			
		||||
# update the vendored dependencies
 | 
			
		||||
go mod vendor && go mod tidy
 | 
			
		||||
 | 
			
		||||
# compile the executable
 | 
			
		||||
cd "$APPDIR/cmd/cheat"
 | 
			
		||||
go clean && go generate && go build -mod vendor
 | 
			
		||||
 
 | 
			
		||||
@@ -4,6 +4,9 @@
 | 
			
		||||
BINDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 | 
			
		||||
APPDIR=$(readlink -f "$BINDIR/..")
 | 
			
		||||
 | 
			
		||||
# update the vendored dependencies
 | 
			
		||||
go mod vendor && go mod tidy
 | 
			
		||||
 | 
			
		||||
# build embeds
 | 
			
		||||
cd "$APPDIR/cmd/cheat"
 | 
			
		||||
go clean && go generate
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user