pkg / sftp

SFTP support for the go.crypto/ssh package
BSD 2-Clause "Simplified" License
1.49k stars 379 forks source link

Does this package Support z/OS (s390x) or not? #578

Open drimmeer opened 4 months ago

drimmeer commented 4 months ago

Now when I tried to run 'go build .' with my sftp project on z/OS USS, it failed with error _../../go/pkg/mod/github.com/pkg/sftp@v1.13.6/attrs.go:101:2: undefined: fileStatFromInfoOs ../../go/pkg/mod/github.com/pkg/sftp@v1.13.6/ls_formatting.go:70:24: undefined: lsLinksUIDGID_

I am wondering if this sftp package supports IBM mainframe zos/s390x or not? If yes, what could be the reason of the above problem? If not, what needs to be done to add the support?

Thank you in advance.

puellanivis commented 4 months ago

Looking around. I don’t know if we do. I get go: unsupported GOOS/GOARCH pair zos/s390x when I try. I’m also not finding support for zos in the builtin syscall library?

Can you try the support-zos-s390x branch and see if that works? If it doesn’t let me know the messages, and I’ll work on that.

drimmeer commented 4 months ago

Thank you very much Cassondra, branch support-zos-s390x works! At least I could build my code and do a normal sftp with it!