Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Classpath construction is not portable #5

Open
davido opened this issue Nov 4, 2016 · 2 comments
Open

Classpath construction is not portable #5

davido opened this issue Nov 4, 2016 · 2 comments

Comments

@davido
Copy link

davido commented Nov 4, 2016

This line:

   ":".join([dep.path for dep in all_deps]),

would produce claspath that will not work on Windows. It should be ";" on this platform.

I have the same issue in Gerrit build: [1].

[1] https://github.com/GerritCodeReview/gerrit/blob/master/tools/bzl/gwt.bzl#L149

@ekuefler
Copy link
Contributor

ekuefler commented Nov 5, 2016

Makes sense. Do you know if Skylark provides us any easy way to check which platform we're on?

@davido
Copy link
Author

davido commented Nov 5, 2016

I havn't found it yet. There is os attribute in repository_ctx, but it looks like it's only exposed in repository rule, that doesn't help us:

/** A Skylark structure to deliver information about the system we are running on. */
@Immutable
@SkylarkModule(
  name = "repository_os",
  category = SkylarkModuleCategory.NONE,
  doc = "Various data about the current platform Bazel is running on."
)
final class SkylarkOS {
[...]

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

2 participants