question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider a WORKSPACE `alias` rule

See original GitHub issue

Something like:

WORKSPACE:

http_archive(
    name = "com_google_protobuf",
    ...
)

alias(
    name = "com_google_protobuf_cc",
    actual = "com_google_protobuf",
)

Depending on com_google_protobuf_cc would be equivalent to com_google_protobuf.

The use-case is highlighted in https://groups.google.com/forum/#!topic/bazel-discuss/859ybHQZnuI

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:26 (14 by maintainers)

github_iconTop GitHub Comments

11reactions
jayconrodcommented, Aug 9, 2017

Without aliases, what is the the best practice for renaming a workspace? I would expect aliases to be the main tool for this, and I don’t see how renaming would work without them.

Suppose I have a project that uses @io_bazel_rules_go, but at some point, that repository changes its name to @build_bazel_rules_go. I may have some dependencies that refer to it using the new name and some using the old name.

9reactions
TheButlahcommented, Feb 27, 2020

This looks like an important and relevant feature - why is this issue still closed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

About Google Workspace email aliases - Google Domains Help
This article provides an overview of what email aliases are, what they're used for, and resources for how to add them.
Read more >
Workspace Rules - Bazel
A unique name for this target. The target to be aliased. This target must exist, but can be any type of rule (including...
Read more >
Super-charge your email with your own domain, routing ...
🔗 Aliased Domains​​ Finally, the simplest kind of routing in Workspace is to alias an entire domain to your primary domain, causing all...
Read more >
Use email aliases to organize your inbox—and stay private
In that spirit, consider email aliases, a useful feature found in ... your tweaked email addresses, click File, then Manage Rules & Alerts....
Read more >
Alias Dimensions - Oracle Help Center
In Planning, these members are considered Alias tables. ... the Alias dimension is brought into an application, the application's naming rules are applied....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found