gopherdata / gophernotes

The Go kernel for Jupyter notebooks and nteract.
MIT License
3.8k stars 264 forks source link

can not import github.com/tensorflow/tensorflow/tensorflow/go #172

Closed mattn closed 5 years ago

mattn commented 5 years ago

image

repl.go:4:5: error executing "go build -buildmode=plugin" in directory "/home/mattn/go/src/gomacro_imports/github.com/tensorflow/tensorflow/tensorflow/go/": exit status 1
$ cd /home/mattn/go/src/gomacro_imports/github.com/tensorflow/tensorflow/tensorflow/go/
$ go build -buildmode=plugin
can't load package: package gomacro_imports/github.com/tensorflow/tensorflow/tensorflow/go:
go.go:8:2: expected 'STRING', found 'go'
go.go:10:2: expected ')', found 'EOF'
$ head go.go
// this file was generated by gomacro command: import "github.com/tensorflow/tensorflow/tensorflow/go"
// DO NOT EDIT! Any change will be lost when the file is re-generated

package main

import (
        . "reflect"
        go "github.com/tensorflow/tensorflow/tensorflow/go"
)
cosmos72 commented 5 years ago

Ops... good catch! the importer does not check yet for reserved keywords and attempts to use go as package import alias. I will fix it ASAP

cosmos72 commented 5 years ago

fixed in 7c3ca4e0f5c3a1a43c659f86e3cd02a9a9b9aa9a