Skip to content

Build errors on Ubuntu 20.4 w/ Go 1.13.8 #31

@vicchi

Description

@vicchi

Clean install of Ubuntu 20.04 ...

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.3 LTS
Release:	20.04
Codename:	focal

Latest Go release from the standard Ubuntu apt package repos, via sudo apt install -y golang

$ go version
go version go1.13.8 linux/amd64

And then 😢

$ go get github.com/missinglink/pbf
# github.com/missinglink/pbf/command
../../go/src/github.com/missinglink/pbf/command/bitmask_boundaries.go:40:37: invalid operation: c.Args()[0] (type cli.Args does not support indexing)
../../go/src/github.com/missinglink/pbf/command/bitmask_boundaries.go:43:31: invalid operation: c.Args()[1] (type cli.Args does not support indexing)
../../go/src/github.com/missinglink/pbf/command/bitmask_boundaries.go:57:41: invalid operation: c.Args()[1] (type cli.Args does not support indexing)
../../go/src/github.com/missinglink/pbf/command/bitmask_custom.go:19:8: invalid argument argv (type cli.Args) for len
../../go/src/github.com/missinglink/pbf/command/bitmask_custom.go:25:37: invalid operation: c.Args()[0] (type cli.Args does not support indexing)
../../go/src/github.com/missinglink/pbf/command/bitmask_custom.go:28:31: invalid operation: c.Args()[1] (type cli.Args does not support indexing)
../../go/src/github.com/missinglink/pbf/command/bitmask_custom.go:60:41: invalid operation: c.Args()[1] (type cli.Args does not support indexing)
../../go/src/github.com/missinglink/pbf/command/bitmask_stats.go:16:31: invalid operation: c.Args()[0] (type cli.Args does not support indexing)
../../go/src/github.com/missinglink/pbf/command/bitmask_stats.go:23:25: invalid operation: c.Args()[0] (type cli.Args does not support indexing)
../../go/src/github.com/missinglink/pbf/command/bitmask_super_relations.go:18:37: invalid operation: c.Args()[0] (type cli.Args does not support indexing)
../../go/src/github.com/missinglink/pbf/command/bitmask_super_relations.go:18:37: too many errors

Anything immediately apparent (apart from the fact that the version of Go is several releases ahead of the 1.10 release mentioned in the README)?

Also tried downgrading to Go 1.10 but that threw a completely different set of errors so I'll leave that for another day.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions