Skip to content

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

Closed

Description

@drimmeer

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/[email protected]/attrs.go:101:2: undefined: fileStatFromInfoOs
../../go/pkg/mod/github.com/pkg/[email protected]/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.

Activity

  1. changed the title [-]Does this package Support z/OS (s390) or not?[/-] [+]Does this package Support z/OS (s390x) or not?[/+] on Mar 14, 2024
  2. puellanivis commented on Mar 15, 2024

    @puellanivis
    Collaborator

    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.

  3. drimmeer commented on Mar 15, 2024

    @drimmeer
    Author

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

  4. christhomas commented on Oct 15, 2026

    @christhomas
    Contributor

    We did a small code audit of the open issues, and we think this one is already addressed.

    The support-zos-s390x branch that was confirmed working above was merged as #580 and released in v1.13.7. zos is now in the build constraints of the files that were missing on z/OS:

    • //go:build darwin || dragonfly || freebsd || (!android && linux) || netbsd || openbsd || solaris || aix || js || zos
    • //go:build aix || darwin || dragonfly || freebsd || (!android && linux) || netbsd || openbsd || solaris || js || zos

    So we think this can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions