Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

golang rzpipe install not working #27

Open
ctlayon opened this issue Sep 13, 2021 · 0 comments
Open

golang rzpipe install not working #27

ctlayon opened this issue Sep 13, 2021 · 0 comments
Labels
bug Something isn't working high-priority

Comments

@ctlayon
Copy link
Contributor

ctlayon commented Sep 13, 2021

Running arch linux with go version go1.17 linux/amd64.

package main

import (
	"github.com/rizinorg/rz-pipe/go"
)

func main() {

	r2p, err := rzpipe.NewPipe("/bin/ls")
	if err != nil {
		panic(err)
	}
	defer r2p.Close()
}

Output of trying to install

go/src/hello2                                                                                                                                                
▶ go version
go version go1.17 linux/amd64

go/src/hello2                                                                                                                                                                                                                                                                                                          
▶ go mod init                                                                                                                                                                                                                                                                                                             
go: creating new go.mod: module hello2                                                                                                                                                                                                                                                                                    
go: to add module requirements and sums:                                                                                                                                                                                                                                                                                  
        go mod tidy                                                                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                                          
go/src/hello2                                                                                                                                                                                                                                                                                                             
▶ go mod tidy                                                                                                                                                                                                                                                                                                             
go: finding module for package github.com/rizinorg/rz-pipe/go                                                                                                                                                                                                                                                             
go: found github.com/rizinorg/rz-pipe/go in github.com/rizinorg/rz-pipe/go v0.0.0-20210623092913-2128c46e5221                                                                                                                                                                                                             
go: hello2 imports                                                                                                                                                                                                                                                                                                        
        github.com/rizinorg/rz-pipe/go: github.com/rizinorg/rz-pipe/[email protected]: parsing go.mod:                                                                                                                                                                                                
        module declares its path as: github.com/rizinorg/rz-pipe                                                                                                                                                                                                                                                          
                but was required as: github.com/rizinorg/rz-pipe/go           

I've also tried using rz-pm with the same results. I'm not sure if this is an issue with my version of go or with go.mod:

module github.com/rizinorg/rz-pipe

go 1.15

require github.com/rainycape/dl v0.0.0-20151222075243-1b01514224a1

I can clone the repo directly and use replace to get it to work but it would be nice to be able to just go get <blah> or rz-pm install rz-pipe-go:

module hello

go 1.17

require github.com/rizinorg/rz-pipe/go v0.0.0-00010101000000-000000000000

require github.com/rainycape/dl v0.0.0-20151222075243-1b01514224a1 // indirect

replace github.com/rizinorg/rz-pipe/go => /home/majesticboar/go/src/github.com/rizinorg/rz-pipe/go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high-priority
Projects
None yet
Development

No branches or pull requests

2 participants