Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B buck
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 201
    • Issues 201
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • buck
  • Merge requests
  • !558

Cross-cell: Fix file system mismatch in classpath resolution

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/davido/fix_cross_cell_deps into master Dec 07, 2015
  • Overview 44
  • Commits 1
  • Pipelines 0
  • Changes 10

Created by: davido

Rule can be provided from different cell and thus output file name must be relocated according to cell root. Change all the methods on JavaLibraryClasspathProvider that take Optional outputJar to take Optional outputJar instead.

SourcePaths are much safer because they encapsulate the project filesystem. That way we know they can always be resolved correctly.

Closes #545 (closed)

TEST PLAN:

Clone JGit with this patch: [1]. Clone Gerrit Code Review with this patch: [2]. Replace JGit cell during Gerrit build, with:

$ buck build --config repositories.jgit=../jgit gerrit

Observe, that without this diff, the classpath contains invalid entries: non relocated jgit output file. This diff relocates it to jgit cell.

[1] https://git.eclipse.org/r/61938 [2] https://gerrit-review.googlesource.com/73000

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/davido/fix_cross_cell_deps