Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Compilation error #203

Open
cabralrobert opened this issue Feb 5, 2021 · 1 comment
Open

Compilation error #203

cabralrobert opened this issue Feb 5, 2021 · 1 comment

Comments

@cabralrobert
Copy link

When trying to compile the code on my machine, I had the following two errors:

/home/rcabraladmin/work/src/github.com/google/battery-historian/third_party/closure-library/closure/goog/module/modulemanager_test.js:281: ERROR - Parse error. '}' expected

/home/rcabraladmin/work/src/github.com/google/battery-historian/third_party/closure-library/closure/goog/streams/full_test_cases.js:631: ERROR - Parse error. '(' expected

I tried to add the "{", but it didn't work out, as I don't have practice with json, could you help, please?

@nomis
Copy link

nomis commented May 6, 2021

The script pulls in the latest version of the closure library, which is now unsupported by the version of the compiler.

Downgrade the closure library to the same version as the compiler:

cd "$GOPATH/src/github.com/google/battery-historian/third_party/closure-library"
git checkout v20170409

cd "$GOPATH/src/github.com/google/battery-historian"
go run setup.go

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants