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

Unable to Build Using README Instructions #196

Closed
r351574nc3 opened this issue Aug 1, 2019 · 3 comments
Closed

Unable to Build Using README Instructions #196

r351574nc3 opened this issue Aug 1, 2019 · 3 comments
Assignees
Labels
component: documentation P2 status: closed - fixed type: cleanup Refactorings, idiomatic transforms, tech debt payoff

Comments

@r351574nc3
Copy link

I added the following to my WORKSPACE file

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

rules_kotlin_version = "67f4a6050584730ebae7f8a40435a209f8e0b48e"

http_archive(
    name = "io_bazel_rules_kotlin",
    urls = ["https://github.com/bazelbuild/rules_kotlin/archive/%s.zip" % rules_kotlin_version],
    sha256 = "48116981ac03809f0578bfa9ea52c934cb1db118d8aaee15a38495e867321fda",
    type = "zip",
    strip_prefix = "rules_kotlin-%s" % rules_kotlin_version
)

67f4a6050584730ebae7f8a40435a209f8e0b48e is the version described in the README.md.

The result is the following error:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
ERROR: /root/.cache/bazel/_bazel_root/17ca80f5678de367412ae4ed97070adf/external/io_bazel_rules_kotlin/kotlin/kotlin.bzl:122:25: name 'FileType' is not defined
Loading: 0 packages loaded
ERROR: error loading package '': Extension 'kotlin/kotlin.bzl' has errors
ERROR: error loading package '': Extension 'kotlin/kotlin.bzl' has errors
INFO: Elapsed time: 3.689s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
@r351574nc3
Copy link
Author

Is there a more appropriate version to use?

@IljaKroonen
Copy link
Contributor

I recommend using the latest release from here:

https://github.com/cgruber/rules_kotlin/releases

Roadmap for this official repo: https://github.com/bazelbuild/rules_kotlin/blob/master/ROADMAP.md

For more info about the status, read #190

@cgruber cgruber added status: open - needs triage type: cleanup Refactorings, idiomatic transforms, tech debt payoff component: documentation labels Oct 17, 2019
@cgruber
Copy link
Collaborator

cgruber commented Oct 29, 2019

This should be fixed with the recent release candidate. Please re-open if this is not the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: documentation P2 status: closed - fixed type: cleanup Refactorings, idiomatic transforms, tech debt payoff
Projects
None yet
Development

No branches or pull requests

3 participants