-
Notifications
You must be signed in to change notification settings - Fork 180
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
Cannot load '@rules_pkg//:mappings.bzl': no such file #596
Labels
Comments
you want @rules_pkg//*pkg*:mappings.bzl.
…On Thu, Jun 30, 2022 at 10:53 PM Sean Choi ***@***.***> wrote:
Hello bazel team,
I am trying to use the rules_pkg on Bazel version 5.2.0.
I do have 0.7.0 version of rules package defined in WORKSPACE as follows:
`http_archive(
name = "rules_pkg",
sha256 =
"8a298e832762eda1830597d64fe7db58178aa84cd5926d76d5b744d6558941c2",
urls = [
"
https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.7.0/rules_pkg-0.7.0.tar.gz
",
"
https://github.com/bazelbuild/rules_pkg/releases/download/0.7.0/rules_pkg-0.7.0.tar.gz
",
],
)
***@***.***_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()
`
When I try to add ***@***.***_pkg//:mappings.bzl", "pkg_filegroup")' to
my BUILD, I am getting 'ERROR: error loading package '': cannot load
***@***.***_pkg//:mappings.bzl': no such file'.
Has anyone encountered this issue? Thank you
—
Reply to this email directly, view it on GitHub
<#596>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXHHHC2275LFXO4SCY4SMDVRYJO5ANCNFSM52KYXPYA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I can't reproduce that. You probably are not actually getting rule_pkg
0.7.1.
I would bet that another repo is bringing in an obsolete version through
its dependency chain.
…On Mon, Sep 12, 2022 at 8:21 PM Kevin Humphreys ***@***.***> wrote:
I am getting this same error, even with ***@***.***_pkg//pkg:mappings.bzl",
"pkg_files")
my WORKSPACE includes:
http_archive(
name = "rules_pkg",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.7.1/rules_pkg-0.7.1.tar.gz",
"https://github.com/bazelbuild/rules_pkg/releases/download/0.7.1/rules_pkg-0.7.1.tar.gz",
],
sha256 = "451e08a4d78988c06fa3f9306ec813b836b1d076d0f055595444ba4ff22b867f",
)
***@***.***_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()
—
Reply to this email directly, view it on GitHub
<#596 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXHHHGBYQFF53NSS2YV6N3V57CJJANCNFSM52KYXPYA>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
not sure if this resolves but would be good to clear up this mess - we havent been able to update rules_pkg for a year and a half |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello bazel team,
I am trying to use the rules_pkg on Bazel version 5.2.0.
I do have 0.7.0 version of rules package defined in WORKSPACE as follows:
`http_archive(
name = "rules_pkg",
sha256 = "8a298e832762eda1830597d64fe7db58178aa84cd5926d76d5b744d6558941c2",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.7.0/rules_pkg-0.7.0.tar.gz",
"https://github.com/bazelbuild/rules_pkg/releases/download/0.7.0/rules_pkg-0.7.0.tar.gz",
],
)
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()
`
When I try to add 'load("@rules_pkg//:mappings.bzl", "pkg_filegroup")' to my BUILD, I am getting 'ERROR: error loading package '': cannot load '@rules_pkg//:mappings.bzl': no such file'.
Has anyone encountered this issue? Thank you
The text was updated successfully, but these errors were encountered: