I created a new project.

The main.go file

package main

import "github.com/projectcalico/libcalico-go/lib/apiconfig"

func main() {
    var _ = aouconfig.LoadClientConfig
}

The go.mod.file

module a.b.c/ddd

require github.com/projectcalico/libcalico-go latest

go 1.12

Build it:

$ go build
go: finding github.com/projectcalico/libcalico-go/lib/apiconfig latest
go: finding github.com/projectcalico/libcalico-go/lib latest
build a.b.c/ddd: cannot load 
github.com/projectcalico/libcalico-go/lib/apiconfig: cannot find module 
providing package github.com/projectcalico/libcalico-go/lib/apiconfig

After the build, the go.mod file is modified to

module a.b.c/ddd

require github.com/projectcalico/libcalico-go v1.7.3

go 1.12

Building it again gets the same error output.

How to use this package in vgo mode?

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to