Skip to content

Name clash when compiling Foreign.Index #38

@alvivi

Description

@alvivi

I was trying to compile a simple program with psgo that uses simple-json. I expected lots of missing functions but instead, I found a compile error that arises directly from generated code:

.../output/Main/Main.go
# project.localhost/purescript-native/output/Foreign.Index
output/Foreign.Index/Foreign_Index.go:8:5: Foreign redeclared as imported package name
        previous declaration during import "github.com/purescript-native/go-runtime"
output/Foreign.Index/Foreign_Index.go:128:22: use of package Foreign without selector
psgo: callProcess: go "build" "project.localhost/purescript-native/output/Main" (exit 2): failed

Metadata

Metadata

Assignees

Labels

GolangApplies to the Go targetbug

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions