Skip to content

Commit 62aaa8a

Browse files
authored
fix: Remove exact azldev version from spec headers (#66)
Removes a source of non-reproducibility from generated specs.
1 parent 6066a5f commit 62aaa8a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/app/azldev/core/sources/sourceprep.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525
"github.com/microsoft/azure-linux-dev-tools/internal/utils/fileperms"
2626
"github.com/microsoft/azure-linux-dev-tools/internal/utils/fileutils"
2727
"github.com/samber/lo"
28-
"go.szostok.io/version"
2928
)
3029

3130
// MacrosFileExtension is the file extension used for azldev-generated macros files.
@@ -549,13 +548,11 @@ func synthesizeMacroLoadOverlays(macrosFileName string) ([]projectconfig.Compone
549548
// generateFileHeaderOverlay generates an overlay that prepends a header to the spec.
550549
// It should be applied after all other overlays, as it should be the first thing in the spec file.
551550
func generateFileHeaderOverlay() []projectconfig.ComponentOverlay {
552-
ver := version.Get()
553-
554551
return []projectconfig.ComponentOverlay{
555552
{
556553
Type: projectconfig.ComponentOverlayPrependSpecLines,
557554
Lines: []string{
558-
"# This spec file has been modified by azldev to include build configuration overlays. Version: " + ver.Version,
555+
"# This spec file has been modified by azldev to include build configuration overlays.",
559556
"# Do not edit manually; changes may be overwritten.",
560557
"",
561558
},

0 commit comments

Comments
 (0)