Skip to content

syscall.Umask not defined when compiling to wasi with tinygo #108

@mJehanno

Description

@mJehanno

Hello,

I'm using [go-git/go-git] in my side-project. This project is supposed to be a plugin running in [extism] and therefore need to be cmpiled to wasi.

The problem is that when targeting wasi with tinygo I end up with the following error :

../../../go/pkg/mod/github.com/go-git/go-billy/[email protected]/osfs/os_wasip1.go:30:17: undefined: syscall.Umask
../../../go/pkg/mod/github.com/go-git/go-billy/[email protected]/osfs/os_wasip1.go:32:11: undefined: syscall.Umask

The way I understand it is that syscall.Umask does not exist in tinygo. I've been told (but could'nt find any matching sources) that tinygo expose an os.Umask instead.

I don't know if this would be the solution to fix compiling to wasi ?

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