Skip to content

Commit

Permalink
allow building newer go module versions
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasten committed Apr 3, 2024
1 parent 5ceb579 commit d9415aa
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _ertgo
Submodule _ertgo updated 2 files
+ bin/go
+1 −1 go.env
7 changes: 7 additions & 0 deletions ego/cmd/newer-go-ver-test/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module example.com/newer-go-ver-test

go 1.99

replace example.com/testmod => ./testmod

require example.com/testmod v0.0.0-00010101000000-000000000000
7 changes: 7 additions & 0 deletions ego/cmd/newer-go-ver-test/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package main

import "example.com/testmod"

func main() {
testmod.Hello()
}
3 changes: 3 additions & 0 deletions ego/cmd/newer-go-ver-test/testmod/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module example.com/testmod

go 1.98
7 changes: 7 additions & 0 deletions ego/cmd/newer-go-ver-test/testmod/testmod.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package testmod

import "fmt"

func Hello() {
fmt.Println("hello from testmod")
}
8 changes: 8 additions & 0 deletions src/integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,11 @@ run ego sign enclave2.json
keyid2=$(ego run sealkeyid-test)
echo 'test keyid1 = keyid2'
test "$keyid1" = "$keyid2"

# Test building module with newer go version
mkdir "$tPath/newer-go-ver-test"
cd "$egoPath/ego/cmd/newer-go-ver-test"
run ego-go build -o "$tPath/newer-go-ver-test"
cd "$tPath/newer-go-ver-test"
run ego sign newer-go-ver-test
run ego run newer-go-ver-test

0 comments on commit d9415aa

Please sign in to comment.