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

Yanked buildpacks have no warning shown on their registry page #112

Open
edmorley opened this issue Jun 20, 2023 · 4 comments
Open

Yanked buildpacks have no warning shown on their registry page #112

edmorley opened this issue Jun 20, 2023 · 4 comments

Comments

@edmorley
Copy link
Contributor

All versions of this buildpack are yanked (including the latest version):
https://registry.buildpacks.io/buildpacks/heroku/nodejs-typescript

...however, the fact that this buildpack is yanked is not mentioned on that page - meaning users will not know, and may use it thinking it's still actively maintained.

@joshwlewis
Copy link
Member

It looks like the registry's DB still has this buildpack recorded as "yanked": false: https://cnb-registry-api-staging.herokuapp.com//api/v1/buildpacks/heroku/nodejs-typescript/0.2.3. Seems like there's still an issue with the caching process.

@edmorley
Copy link
Contributor Author

edmorley commented Jun 28, 2023

Oh good point.

So looking now it seems yanked is not set on update:

UPDATE SET
addr = $4,
homepage = $5,
description = $6,
licenses = $7,
stacks = $8,
version_major = $9,
version_minor = $10,
version_patch = $11,
updated_at = now();

I did actually check for any other missing fields when working on #117, however, I did so by checking the list of fields set in the SQL for creation vs update, and it seems the yanked field is not set explicitly even for creation, but instead is implicitly set to false via its default value:

t.boolean "yanked", default: false

@edmorley
Copy link
Contributor Author

So I guess the yank feature has never worked properly, and none of these yanked buildpacks are actually yanked according to API:
https://github.com/buildpacks/registry-index/issues?q=is%3Aissue+yank+is%3Aclosed

@edmorley
Copy link
Contributor Author

This also affects the latest round of yanking (of the test multi-arch 0.0.999 releases):
https://github.com/buildpacks/registry-index/issues?q=is%3Aissue+author%3Aheroku-languages-release-bot+yank

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants