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

[Bug] Bucket isn't correctly recognized when installing old versions of a package #5320

Closed
ppvnf opened this issue Jan 5, 2023 · 5 comments
Labels

Comments

@ppvnf
Copy link

ppvnf commented Jan 5, 2023

Bug Report

1 - Install an old version of some package (example from extras bucket: scoop install [email protected])

2 - run scoop list

Captura de tela 2023-01-05 200401

Current Behavior

Source is reported as <auto-generated>

Expected Behavior

Source should be reported as extras

Related issue:

#3045

@ppvnf ppvnf added the bug label Jan 5, 2023
@HUMORCE
Copy link
Member

HUMORCE commented Jan 5, 2023

This is expected behavior for the current design.

Duplicate of #3045

@HUMORCE HUMORCE closed this as completed Jan 5, 2023
@ppvnf
Copy link
Author

ppvnf commented Jan 6, 2023

Is there any workaround?

Edit: I think it's possible using a custom bucket to create a manifest for the old version, but I wish there was an easier way

@HUMORCE
Copy link
Member

HUMORCE commented Jan 6, 2023

I wish there was an easier way

What is your purpose, updating older version of apps? or what

@ppvnf
Copy link
Author

ppvnf commented Jan 6, 2023

I wish there was an easier way

What is your purpose, updating older version of apps? or what

For example, testing if scoop successfully updates a package from an old to a new version

@HUMORCE
Copy link
Member

HUMORCE commented Jan 6, 2023

app.json

version: 1.0,
pre_install: "INFO 'App: version 1.0 installed.'",
post_install: "start-process app.exe"
pre_uninstall: "stop-process app.exe"

app.json >LATEST

version: 1.1,
pre_install: "INFO 'App: version 1.1 installed.'",
post_install: "start-process app.exe"
> scoop install app           # when 1.0 is latest version.
INFO App: version 1.0 installed.
> scoop uninstall app
'app' was uninstalled.
> scoop install [email protected]
INFO App: version 1.1 installed.
> scoop uninstall app
app.exe still running.

[email protected] <auto-generated> is not exactly equal to manifest of app v1.0.

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

No branches or pull requests

2 participants