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

feat(config): Allow scoop to check and update 'nightly' apps #5166

Merged
merged 20 commits into from
Oct 18, 2022

Conversation

pynappo
Copy link
Contributor

@pynappo pynappo commented Sep 29, 2022

Description

Adds a new config option check_nightly_outdated.

When set to true, while checking if an app version is old (e.g. for scoop update *), Scoop will check the date on apps whose installed versions are formatted as 'nightly-yyyyMMdd'. For apps versioned as 'nightly', the date is already appended to the installed version by Scoop upon install. Alternatively, the date could already be included in the manifest (e.g. goneovim-nightly).

If the date is found to be a day old or more, Scoop considers the version outdated.

Date format ref: https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings

Motivation and Context

Closes #4077

How Has This Been Tested?

A few tests have been added to Scoop-Versions.Tests.ps1

On my machine:

  • PowerShell version is 7.2.6
  • scoop is my current, normal install of scoop, following master
  • bin\scoop.ps1 features the proposed feature

image

Checklist:

  • I have read the Contributing Guide.
  • I have ensured that I am targeting the develop branch.
  • I have updated the documentation accordingly.

Not sure if my documentation added to scoop-config.ps1 is clear and simple enough to the end user. I'm considering removing the technical part about the date format and how Scoop checks the version number.

  • I have updated the tests accordingly.
  • I have added an entry in the CHANGELOG.

rashil2000
rashil2000 previously approved these changes Oct 6, 2022
@niheaven
Copy link
Member

niheaven commented Oct 6, 2022

Got the idea, but the implement and test need to be tweaked, will review and fix after 0.3.0 release.

@niheaven
Copy link
Member

Please check the code, and this should be done after 0.3.0.

@niheaven niheaven changed the title feat(config): Allow scoop to check if apps versioned as 'nightly' are outdated feat(config): Allow scoop to check and update 'nightly' apps Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants