Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updates to support latest bazel (0.23.0) #78

Merged
merged 4 commits into from
Apr 1, 2019
Merged

updates to support latest bazel (0.23.0) #78

merged 4 commits into from
Apr 1, 2019

Conversation

evie404
Copy link
Contributor

@evie404 evie404 commented Feb 28, 2019

Updates some rules to support latest Bazel release 0.23.0:

@evie404
Copy link
Contributor Author

evie404 commented Feb 28, 2019

all test targets pass on my machine except for test_polymer-cli. seems specific to node. I can patch Makefile and .travis.yml to ignore the target and test against latest Bazels to fix the build if that's ok.

$ make test_polymer-cli
(cd tests/polymer-cli && bazel test //...)
ERROR: /Users/ricky/vsco/rules_node/tests/polymer-cli/BUILD:3:1: no such package '@yarn_modules//': Traceback (most recent call last):
	File "/private/var/tmp/_bazel_ricky/bdfa3428a8036d829ae45f9aa9cd9b73/external/org_pubref_rules_node/node/internal/yarn_modules.bzl", line 69
		execute(ctx, [node, yarn_js, "install"], qui..., ...)})
	File "/private/var/tmp/_bazel_ricky/bdfa3428a8036d829ae45f9aa9cd9b73/external/org_pubref_rules_node/node/internal/yarn_modules.bzl", line 4, in execute
		fail((" ".join(cmds) + ("failed: \nST...))))
/private/var/tmp/_bazel_ricky/bdfa3428a8036d829ae45f9aa9cd9b73/external/node/bin/node /private/var/tmp/_bazel_ricky/bdfa3428a8036d829ae45f9aa9cd9b73/external/yarn/bin/yarn.js installfailed: 
STDOUT:
yarn install v1.0.1
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

STDERR:
warning package.json: No license field
warning [email protected]: No license field
warning [email protected]: We don't recommend using Bower for new projects. Please consider Yarn and Webpack or Parcel. You can read how to migrate legacy project here: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
warning @types/[email protected]: This is a stub types definition. winston provides its own type definitions, so you do not need this installed.
warning [email protected]: Package no longer supported. Contact [email protected] for more info.
warning [email protected]: This package is unmaintained. Use @sinonjs/formatio instead
warning [email protected]: This package has been deprecated in favour of @sinonjs/samsam
warning [email protected]: This package has been deprecated in favour of @sinonjs/samsam
warning [email protected]: no longer maintained
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=8.0".
error Found incompatible module
 and referenced by '//:polymer-cli_bin_test'
WARNING: errors encountered while analyzing target '//:polymer-cli_bin_test': it will not be built
INFO: Analysed target //:polymer-cli_bin_test (2 packages loaded, 62 targets configured).
INFO: Found 0 test targets...
ERROR: command succeeded, but there were loading phase errors
INFO: Elapsed time: 28.244s, Critical Path: 0.00s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
    Fetching @yarn_modules; fetching 28s
make: *** [test_polymer-cli] Error 1

@evie404
Copy link
Contributor Author

evie404 commented Mar 28, 2019

@pcj any chance you can take a look at this? thanks a lot!

@evie404
Copy link
Contributor Author

evie404 commented Mar 28, 2019

updated the branch to include 0.24.0 fixes around FileType deprecation

@pcj
Copy link
Contributor

pcj commented Apr 1, 2019

LGTM, thanks!

@pcj pcj merged commit 5e4d6b3 into pubref:master Apr 1, 2019
@evie404 evie404 deleted the rpai/bazel_0_23_0_fixes branch April 1, 2019 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants