Skip to content

[2.x] dependencyLock captures file URL #8741

@eed3si9n

Description

@eed3si9n

steps

scalaVersion := "2.13.16"

Using a locally published snapshot run dependencyLock

problem

  1. The artifact URL captures my Coursier cache directory:
{
  "version": "1.0",
  "buildClock": "725bc176e1f279828c9a0be08578993d56a5bd5f5d1c06d4eab8ee29471cc998",
  "configurations": [
    {
      "name": "compile",
      "dependencies": [
        {
          "organization": "org.scala-lang",
          "name": "scala-library",
          "version": "2.13.16",
          "configuration": "compile",
          "tpe": "jar",
          "transitives": [],
          "artifacts": [
            {
              "url": "file:/Users/xxxx/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.16/scala-library-2.13.16.jar",
              "extension": "jar",
              "tpe": "jar"
            }
          ]
        }
      ]
    },
   .....

expectation

  1. Ideally, it should contain the original URL to Maven Central
  2. Whenever it tries to capture the file:// URL, for example because of some local repository, it should just fail to create a lock file

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions