Skip to content

Commit

Permalink
fixed golang builds for goodish
Browse files Browse the repository at this point in the history
  • Loading branch information
BartMassey committed Dec 7, 2024
1 parent 3a52440 commit cf1eabe
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
sh build.sh )

( echo "go:" >&2
cd go
GOPATH="`pwd`"
export GOPATH
unset GOPATH
export GO111MODULE=on
cd go/src
go clean
go build src/ttt.go )
go build )

( echo "haskell:" >&2
cd haskell
Expand Down
3 changes: 3 additions & 0 deletions go/src/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module ttt

go 1.23.3
2 changes: 1 addition & 1 deletion go/src/ttt.go → go/src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package main

import (
"fmt"
"negamax"
"ttt/negamax"
"os"
"strconv"
)
Expand Down
2 changes: 1 addition & 1 deletion go/src/negamax/negamax.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

package negamax

import "gamevalue"
import "ttt/gamevalue"

// Pseudocode:

Expand Down

0 comments on commit cf1eabe

Please sign in to comment.