Skip to content

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

Merged
niheaven merged 20 commits intoScoopInstaller:developfrom
pynappo:feat-nightly-check
Oct 18, 2022
Merged

feat(config): Allow scoop to check and update 'nightly' apps#5166
niheaven merged 20 commits intoScoopInstaller:developfrom
pynappo:feat-nightly-check

Conversation

@pynappo
Copy link
Copy Markdown
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
@rashil2000 rashil2000 requested a review from niheaven October 6, 2022 06:17
@niheaven
Copy link
Copy Markdown
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
Copy Markdown
Member

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

Comment thread libexec/scoop-config.ps1 Outdated
@niheaven niheaven requested a review from rashil2000 October 14, 2022 10:22
@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