Either dep or go modules, I think...

2020. április 3., péntek 18:44:37 UTC+2 időpontban salm...@gmail.com a 
következőt írta:
>
> I am using yocto to build a package with this recipe
>
> DESCRIPTION = "github.com/jackc/pgproto3"
>
> GO_IMPORT = "github.com/jackc/pgproto3"
>
> LICENSE = "MIT"
> LIC_FILES_CHKSUM = 
> "file://src/${GO_IMPORT}/LICENSE;md5=ea2961e52eec5b1203f8147a49ef985f"
>
> SRC_URI = 
> "git://github.com/jackc/pgproto3;protocol=https;destsuffix=${PN}-${PV}/src/${GO_IMPORT}
>  
> <http://github.com/jackc/pgproto3;protocol=https;destsuffix=$%7BPN%7D-$%7BPV%7D/src/$%7BGO_IMPORT%7D>"
> SRCREV = "595780be0f9f581451a23a5151b77f782202ad72"
>
> DEPENDS += "go-dep-native"
> inherit go
>
> do_compile_prepend() {
>         cd ${WORKDIR}/build/src/${GO_IMPORT}
>         dep init -v
>         dep ensure -v}
>
> The build fails on one import statement while working on all others. This 
> statement has a "/v" at the end.
>
> module github.com/jackc/pgproto3/v2
>
> go 1.12
> require (
>     github.com/jackc/chunkreader/v2 v2.0.0 <---fails only on this
>     github.com/jackc/pgio v1.0.0
>     github.com/stretchr/testify v1.4.0)
>
> Error below.
>
> | (4)   ✓ select github.com/davecgh/go-spew@v1.1.1 w/1 pkgs| (5)   ? attempt 
> gopkg.in/yaml.v2 with 1 pkgs; 13 versions to try| (5)       try 
> gopkg.in/yaml.v2@v2.2.8| (5)   ✓ select gopkg.in/yaml.v2@v2.2.8 w/1 pkgs| (6) 
>   ? attempt github.com/jackc/chunkreader with 1 pkgs; 4 versions to try| (6)  
>      try github.com/jackc/chunkreader@v2.0.1| (7)   ✗   
> github.com/jackc/chunkreader at v2.0.1 has problem subpkg(s):| (7)       
> github.com/jackc/chunkreader/v2 is missing; required by (root).| (6)       
> try github.com/jackc/chunkreader@v2.0.0| (7)   ✗   
> github.com/jackc/chunkreader at v2.0.0 has problem subpkg(s):| (7)       
> github.com/jackc/chunkreader/v2 is missing; required by (root).| (6)       
> try github.com/jackc/chunkreader@v1.0.0| (7)   ✗   
> github.com/jackc/chunkreader at v1.0.0 has problem subpkg(s):| (7)       
> github.com/jackc/chunkreader/v2 is missing; required by (root).| (6)       
> try github.com/jackc/chunkreader@master| (7)   ✗   
> github.com/jackc/chunkreader at master has problem subpkg(s):| (7)       
> github.com/jackc/chunkreader/v2 is missing; required by (root).| (6)     ← no 
> more versions of github.com/jackc/chunkreader to try; begin backtrack| (5)   
> ← backtrack: no more versions of gopkg.in/yaml.v2 to try| (4)   ← backtrack: 
> no more versions of github.com/davecgh/go-spew to try| (3)   ← backtrack: no 
> more versions of github.com/pmezard/go-difflib to try| (2)   ← backtrack: no 
> more versions of github.com/stretchr/testify to try| (1)   ← backtrack: no 
> more versions of github.com/jackc/pgio to try|   ✗ solving failed
>
> Since the link github.com/jackc/chunkreader/v2 doesn't exist could this be an 
> issue?
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/d77e03d5-0beb-4111-9dbc-ecb1bca9d277%40googlegroups.com.

Reply via email to