Git Product home page Git Product logo

Comments (5)

jmhodges avatar jmhodges commented on September 1, 2024

Also, the readme has

load("@io_bazel_rules_webtesting//web:repositories.bzl", "web_test_repositories")

in it but that line errors for me in 0.3.1:

ERROR: error loading package '': Every .bzl file must have a corresponding package, but '@io_bazel_rules_webtesting//web:repositories.bzl' does not have one. Please create a BUILD file in the same or any parent directory. Note that this BUILD file does not need to do anything except exist.

This is on bazel 0.25 and 0.25.1

The full code is:

http_archive(
    name = "io_bazel_rules_webtesting",
    sha256 = "d71b9dc5fef03cc0c0974305b1c9a3c36f4df1b52ed3d5898f8fa4c5d9d4edb1",
    urls = [
        "https://github.com/bazelbuild/rules_webtesting/archive/0.3.1.tar.gz",
    ],
)

load("@io_bazel_rules_webtesting//web:repositories.bzl", "web_test_repositories")
load("@io_bazel_rules_webtesting//web/versioned:browsers-0.3.1.bzl", "browser_repositories")
load("@io_bazel_rules_webtesting//web:go_repositories.bzl", "go_repositories")

web_test_repositories(omit_bazel_skylib = True)
browser_repositories(chrome = True)
go_repositories()

from rules_webtesting.

jmhodges avatar jmhodges commented on September 1, 2024

Looks like that last issue was because the releases need a strip_prefix call, like so:

rules_webtesting_vers = "0.3.1"
http_archive(
    name = "io_bazel_rules_webtesting",
    sha256 = "d71b9dc5fef03cc0c0974305b1c9a3c36f4df1b52ed3d5898f8fa4c5d9d4edb1",
    strip_prefix = "rules_webtesting-{v}".format(v = rules_webtesting_vers),

    urls = [
        "https://github.com/bazelbuild/rules_webtesting/archive/{v}.tar.gz".format(v = rules_webtesting_vers),
    ],
)

Another bug that cropped up is that the browser_repositories example call says there's a parameter chrome when there is not. There is a chromium, however.

But now for some reason, 0.3.1 thinks I need rules_scala even though I don't have any scala code no do I import it. I'm not sure how to get around this.

ERROR: error loading package '@io_bazel_rules_webtesting//scalatests/com/google/testing/web': in /private/var/tmp/_bazel_jeffhodges/15689f02a249bfc2939281a01a900f0c/external/io_bazel_rules_webtesting/web/scala.bzl: Unable to find package for @io_bazel_rules_scala//scala:scala.bzl: The repository '@io_bazel_rules_scala' could not be resolved.

from rules_webtesting.

jmhodges avatar jmhodges commented on September 1, 2024

Yeah, that rules_scala error is happening even on HEAD with the browsers-0.3.2.bzl load statement.

from rules_webtesting.

DrMarcII avatar DrMarcII commented on September 1, 2024

Starting with 0.3.0 I recommend that users pull an archive with prebuilt binaries and fewer dependencies (including rules_scala). Unfortunately I forgot to upload the archive for 0.3.1. This is now fixed.

I have added the missing "s to the examples and changed chrome to chromium. Otherwise, AFAICT, the examples are now correct.

from rules_webtesting.

jmhodges avatar jmhodges commented on September 1, 2024

Thank you! That's fixed my issues

from rules_webtesting.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.