Skip to content

go_sample.sh does not work with recent versions of Go #7902

Closed

Description

With current flatbuffers master and Go 1.20, I tried to run go_sample.sh but it doesn't work because of Go's now mandatory module system:

12:20 ~/src/flatbuffers/samples $ sh go_sample.sh 
Compiling and running the Go sample.
sample_binary.go:22:2: package MyGame/Sample is not in GOROOT (/usr/lib/go/src/MyGame/Sample)
sample_binary.go:24:2: no required module provides package github.com/google/flatbuffers/go: go.mod file not found in current directory or any parent directory; see 'go help modules'
go_sample.sh: line 58: ./go_sample: No such file or directory
rm: cannot remove 'go_sample': No such file or directory

It's also obviously related to #7783 @le-michael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions