You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			34 lines
		
	
	
		
			965 B
		
	
	
	
		
			Plaintext
		
	
			
		
		
	
	
			34 lines
		
	
	
		
			965 B
		
	
	
	
		
			Plaintext
		
	
[exec:git] exec git init -q
 | 
						|
[exec:git] exec git config user.name "name"
 | 
						|
[exec:git] exec git config user.email "name@email.local"
 | 
						|
[exec:git] exec git add go.mod main.go
 | 
						|
[exec:git] exec git commit -q -m 'very unique commit message'
 | 
						|
[exec:git] exec git rev-parse HEAD
 | 
						|
[exec:git] setenvfile HEAD_COMMIT_SHA stdout
 | 
						|
 | 
						|
exec garble build -tags veryuniquebuildtag
 | 
						|
! binsubstr main$exe '(devel)' 'veryuniquebuildtag' ${HEAD_COMMIT_SHA}
 | 
						|
 | 
						|
go version -m main$exe
 | 
						|
stdout 'main(\.exe)?: unknown'
 | 
						|
stdout -count=1 '^.+$' # expect just one line
 | 
						|
 | 
						|
[short] stop # no need to verify this with -short
 | 
						|
 | 
						|
go build -tags veryuniquebuildtag
 | 
						|
binsubstr main$exe '(devel)' 'veryuniquebuildtag' ${HEAD_COMMIT_SHA}
 | 
						|
 | 
						|
go version -m main$exe
 | 
						|
stdout 'path\s*test/main'
 | 
						|
stdout 'mod\s*test/main\s*\(devel\)'
 | 
						|
stdout 'build\s*-tags=veryuniquebuildtag'
 | 
						|
stdout 'build\s*vcs.revision='${HEAD_COMMIT_SHA}
 | 
						|
-- go.mod --
 | 
						|
module test/main
 | 
						|
 | 
						|
go 1.23
 | 
						|
-- main.go --
 | 
						|
package main
 | 
						|
 | 
						|
func main() { println("hello world") }
 |