Skip to content

Building in offline mode not working #139048

@bpintea

Description

@bpintea

Description

Attempting to run gradlew with the --offline flag fails:

[...]

FAILURE: Build failed with an exception.

* Where:
Build file '[path]/elasticsearch/rest-api-spec/build.gradle' line: 5

* What went wrong:
A problem occurred evaluating project ':rest-api-spec'.
> Failed to apply plugin class 'org.elasticsearch.gradle.internal.test.rest.RestTestBasePlugin'.
   > Failed to download branches.json from: https://raw.githubusercontent.com/elastic/elasticsearch/main/branches.json

[...]

This should not happen, either --offline should be rejected, or we should use the locally available branches.json (if any is present).

But --offline should be supported, this mode is useful, since (most?) development/building/testing usually doesn't require the remote branches (besides the occasional GH unavailability).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions