tinygo icon indicating copy to clipboard operation
tinygo copied to clipboard

ENOTDIR not declared by package syscall

Open ribasushi opened this issue 5 years ago • 2 comments

TLDR path/filepath is listed as fully implemented, yet it fails compilation.

Version tinygo version 0.14.0 darwin/amd64 (using go version go1.14.7 and LLVM version 10.0.0)

Failure

~$ tinygo run tiny.go 
# path/filepath
/usr/local/go/src/path/filepath/symlink.go:90:24: ENOTDIR not declared by package syscall

Expectation

~$ go run tiny.go 
cur dir:        /Users/{{expected stuff follows here}}

Testcase

package main

import (
	"fmt"
	"path/filepath"
)

func main() {
	cwd, _ := filepath.Abs(".")
	fmt.Printf("cur dir:\t%s\n", cwd)
}

ribasushi avatar Aug 09 '20 10:08 ribasushi

Is this a difficult issue to solve? Of all the tickets I filed yesterday, this one is the main blocker, as it prevents compilation of a dependency I can't easily get away from 😿 I am very willing to try a branch ( dev or otherwise ) and I'd even try my hand at fixing this if one gives me a general "area to dig in".

Thanks!

ribasushi avatar Aug 10 '20 10:08 ribasushi

@ribasushi I'm sorry this was frustrating for you. This is now sorted. If you don't mind closing the issue, I'd appreciate it. I'm a consumer of TinyGo and felt maybe closing some of the hundreds of open issues might lead to quicker turnaround for the next person, hence bugging you.

codefromthecrypt avatar Sep 07 '22 09:09 codefromthecrypt

Fixed by #2268

niaow avatar Nov 04 '22 12:11 niaow