question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Local repository returns 4 digit version when 2 or 3 digit is in use

See original GitHub issue

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.

Steps to reproduce

Create a local repository and save a few packages with a 2 or 3 digit version number. Then try running Find-PSResource and you’ll notice that 0 get added.

Expected behavior

Find-PSResource AnyPackage -Repository Local

Name       Version Prerelease Repository Description
----       ------- ---------- ---------- -----------
AnyPackage 0.1.0              Local      Use various package managers with a single set of commands.

Actual behavior

Find-PSResource AnyPackage -Repository Local

Name       Version Prerelease Repository Description
----       ------- ---------- ---------- -----------
AnyPackage 0.1.0.0            Local      Use various package managers with a single set of commands.

Error details

No response

Environment data

beta20
7.4-preview3

Visuals

No response

Issue Analytics

  • State:closed
  • Created 4 months ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hanpqcommented, May 24, 2023

Sure, however I’m running 3.0.19 as Find-PSResource is broken in 20 and 21 due to the “Object reference not set to an instance of an object.” #1054

Hopefully this is already be solved in 21/22 but I cannot test it 😃

Get-Module Pester -ListAvailable

ModuleType Version    PreRelease Name                                PSEdition
---------- -------    ---------- ----                                ---------
Script     5.4.1                 Pester                              Desk

Find-Module Pester

Version              Name                                Repository
-------              ----                                ----------
5.4.1                Pester                              PSGallery

Get-PSResource Pester

Name   Version Prerelease Repository
----   ------- ---------- ----------
Pester 5.4.1              PSGallery


Find-PSResource Pester

Name   Version Prerelease Repository
----   ------- ---------- ----------
Pester 5.4.1.0            PSGallery

0reactions
alericksoncommented, Jul 11, 2023

The Pester example in the third to last comment seems to be resolved now, I’m no longer able to repro.

Tried saving some 3 digit versions of packages into a local repository and calling Find-PSResource on them but this also no longer seems to be reproducing. If this is still an issue with the release of PSResourceGet 0.5.23-beta23 feel free to comment again here or open a new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Local repository returns 4 digit version when 2 or 3 digit ...
Create a local repository and save a few packages with a 2 or 3 digit version number. Then try running Find-PSResource and you'll...
Read more >
How to manage the version number in Git?
Every new commit after this will auto-increment tag by appending commit number and commit hash. This can be viewed using the git describe ......
Read more >
When to increment build number?
So do we need to increment the build number when the source code changes? No, you need to increment it when you build...
Read more >
Maven Snapshot Repository vs Release ...
A Maven repository holds a collection of pre-compiled artifacts that we can use in our application as dependencies.
Read more >
7. Releasing and versioning
Versioning is the process of adding unique identifiers to different versions of your package. The unique identifier you use may be name-based or ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found