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

运行 go run setup.go 出错 #179

Open
tianxia-- opened this issue Apr 25, 2019 · 4 comments
Open

运行 go run setup.go 出错 #179

tianxia-- opened this issue Apr 25, 2019 · 4 comments

Comments

@tianxia--
Copy link

/Users/lianshang/go/src/github.com/google/battery-historian/third_party/closure-library/closure/goog/base.js:313: ERROR - Closure dependency methods(goog.provide, goog.require, etc) must be called at file scope.
goog.define('goog.DISALLOW_TEST_ONLY_CODE', COMPILED && !goog.DEBUG);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/Users/lianshang/go/src/github.com/google/battery-historian/third_party/closure-library/closure/goog/base.js:321: ERROR - Closure dependency methods(goog.provide, goog.require, etc) must be called at file scope.
goog.define('goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING', false);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/Users/lianshang/go/src/github.com/google/battery-historian/third_party/closure-library/closure/goog/base.js:860: ERROR - Closure dependency methods(goog.provide, goog.require, etc) must be called at file scope.
goog.ENABLE_DEBUG_LOADER = goog.define('goog.ENABLE_DEBUG_LOADER', true);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/Users/lianshang/go/src/github.com/google/battery-historian/third_party/closure-library/closure/goog/base.js:1043: ERROR - Closure dependency methods(goog.provide, goog.require, etc) must be called at file scope.
goog.LOAD_MODULE_USING_EVAL = goog.define('goog.LOAD_MODULE_USING_EVAL', true);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

@YangFight
Copy link

I met this problem too. who can help to solve this? please.

@YangFight
Copy link

download the closure-library of 20170409.

@rtandy
Copy link

rtandy commented May 8, 2019

Thanks @YangFight for the hint. I worked around this locally by doing:

go run setup.go (this fails)
cd third_party/closure-library/
git reset --hard v20170409
cd -
go run setup.go (this passes)

Would be nice if the build script would check out the correct version of closure-library as well as closure-compiler.

@soniclq
Copy link

soniclq commented May 15, 2019

Thanks @YangFight for the hint. I worked around this locally by doing:

go run setup.go (this fails)
cd third_party/closure-library/
git reset --hard v20170409
cd -
go run setup.go (this passes)

Would be nice if the build script would check out the correct version of closure-library as well as closure-compiler.

it works . thanks very much

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

4 participants