Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

name and id field confusion #109

Open
ForestEckhardt opened this issue Aug 11, 2021 · 0 comments
Open

name and id field confusion #109

ForestEckhardt opened this issue Aug 11, 2021 · 0 comments

Comments

@ForestEckhardt
Copy link
Contributor

As it stands right now there is a name field on the dep-server:

[
  {
    "name": "node",
    "version": "v12.22.5",
    "sha256": "75bc6db4fecd5e507b4a78595532e0e8a291c4cbadbecaf10030ed995d880153",
    "uri": "https://deps.paketo.io/node/node_v12.22.5_linux_x64_bionic_75bc6db4.tgz",
    "stacks": [
      {
        "id": "io.buildpacks.stacks.bionic"
      }
    ],
    "source": "https://nodejs.org/dist/v12.22.5/node-v12.22.5.tar.gz",
    "source_sha256": "119cf027c9ba0a71268914d02d2aa430f7eeb6adef5a9fa0bc9ed6dd1b12cd8c",
    "deprecation_date": "2022-04-30T00:00:00Z",
    "created_at": "2021-08-11T17:40:52+00:00",
    "modified_at": "2021-08-11T17:40:52+00:00",
    "cpe": "cpe:2.3:a:nodejs:node.js:12.22.5:*:*:*:*:*:*:*",
    "purl": "pkg:generic/node@v12.22.5?checksum=119cf027c9ba0a71268914d02d2aa430f7eeb6adef5a9fa0bc9ed6dd1b12cd8c&download_url=https://nodejs.org/dist/v12.22.5/node-v12.22.5.tar.gz",
    "licenses": [
      "0BSD",
      "Apache-2.0",
      "Artistic-2.0",
      "BSD-2-Clause",
      "BSD-3-Clause",
      "BSD-3-Clause-Clear",
      "CC0-1.0",
      "MIT",
      "MIT-0",
      "Unicode-TOU"
    ]
  },
...
]

The value from the name field is ultimately used as the id field in buildpack.toml and the name value is extracted from previous entries. I think that this is confusing that that we should align the dep-server to match more closely with the entries in buildpack.toml.

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

1 participant