Skip to content

Build.psm1 should not get the tag names from history as it prevent a shallow clone #2029

Closed

Description

Specifically, It failed on this line:
https://github.com/PowerShell/PowerShell/blob/master/build.psm1#L851
in this build
https://travis-ci.org/probonopd/PowerShell/builds/154307593
Then after the clone depth was increased it worked in this build:
https://travis-ci.org/probonopd/PowerShell/builds/154313098

The root cause error was:
fatal: No names found, cannot describe anything.

All the errors seen in the build were:

fatal: No names found, cannot describe anything.
WARNING: Please ensure you have previously run Start-PSBuild -Clean -CrossGen!
WARNING: -Types was not specified, continuing with deb!
New-UnixPackage : Cannot bind argument to parameter 'Version' because it is an 
empty string.
At /home/travis/build/probonopd/PowerShell/build.psm1:909 char:29
+             New-UnixPackage @Arguments
+                             ~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [New-UnixPackage], ParameterBin 
   dingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAl 
   lowed,New-UnixPackage

Test-Path : Cannot bind argument to parameter 'LiteralPath' because it is an 
empty string.
At /home/travis/build/probonopd/PowerShell/src/powershell-unix/bin/Linux/netcor
eapp1.0/ubuntu.14.04-x64/publish/Modules/Pester/Pester.psm1:283 char:41
+                 (Test-Path -LiteralPath $unresolvedPath -PathType Lea ...
+                                         ~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Test-Path], ParameterBindingVa 
   lidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAl 
   lowed,Microsoft.PowerShell.Commands.TestPathCommand

Activity

  1. added
    Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributors
    and removed
    Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributors
    on Aug 23, 2016
  2. added this to the milestone on Aug 28, 2016
  3. modified the milestones: 6.0.0-alpha.10, on Sep 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions