From 534826cfa62b59d09e88dcbb7edf762413d6d939 Mon Sep 17 00:00:00 2001 From: Nikita Bykov Date: Tue, 25 Aug 2020 15:50:26 +0300 Subject: [PATCH] updated --- .gitmodules | 2 +- builders/go-builder.psm1 | 14 +++++++------- helpers | 2 +- tests/Go.Tests.ps1 | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.gitmodules b/.gitmodules index c2b7e50..891db83 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,4 +1,4 @@ [submodule "helpers"] path = helpers url = https://github.com/actions/versions-package-tools - branch = v-mazhuk/test-branch + branch = main diff --git a/builders/go-builder.psm1 b/builders/go-builder.psm1 index b3c12fb..0181040 100644 --- a/builders/go-builder.psm1 +++ b/builders/go-builder.psm1 @@ -1,28 +1,28 @@ class GoBuilder { <# .SYNOPSIS - Base Node.js builder class. + Base Go builder class. .DESCRIPTION - Base Node.js builder class that contains general builder methods. + Base Go builder class that contains general builder methods. .PARAMETER Version - The version of Node.js that should be built. + The version of Go that should be built. .PARAMETER Platform - The platform of Node.js that should be built. + The platform of Go that should be built. .PARAMETER Architecture - The architecture with which Node.js should be built. + The architecture with which Go should be built. .PARAMETER TempFolderLocation - The location of temporary files that will be used during Node.js package generation. + The location of temporary files that will be used during Go package generation. .PARAMETER WorkFolderLocation The location of installation files. .PARAMETER ArtifactFolderLocation - The location of generated Node.js artifact. + The location of generated Go artifact. .PARAMETER InstallationTemplatesLocation The location of installation script template. Using "installers" folder from current repository. diff --git a/helpers b/helpers index 68072be..3b38e3d 160000 --- a/helpers +++ b/helpers @@ -1 +1 @@ -Subproject commit 68072bedefb41436c6b70ddfa9adb8e631a3b6cf +Subproject commit 3b38e3de4c5e4bc75f5dee12b5bb8dbffe35c562 diff --git a/tests/Go.Tests.ps1 b/tests/Go.Tests.ps1 index a84587d..2b0d275 100644 --- a/tests/Go.Tests.ps1 +++ b/tests/Go.Tests.ps1 @@ -22,9 +22,9 @@ Describe "Go" { It "version is correct" { $versionOutput = Invoke-Expression -Command "go version" - $finalVersion = $env:VERSION.ToString(3) + $finalVersion = ($env:VERSION).ToString(3) If ($Version.Build -eq "0"){ - $finalVersion = $env:VERSION.ToString(2) + $finalVersion = ($env:VERSION).ToString(2) } $versionOutput | Should -Match $finalVersion }