-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/installer/windowsmsi: fix duplicate workDir in paths
ConstructInstaller already changes working directory to workDir, so it shouldn't be used again in relative paths. This wasn't spotted earlier because it happens not to be an issue when workDir is an absolute path, as was produced by t.TempDir(). Also apply some code simplifications, consistency improvements, and dead code removal. Even though the installer packages don't need cgo, they'll be imported elsewhere where cgo is possibly enabled, so it's not viable to use the !cgo build constraints. Drop them for now. For golang/go#63147. Change-Id: Id60c05fa67988e7548b70a55e712dbabfb7d85d7 Reviewed-on: https://go-review.googlesource.com/c/build/+/554057 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: Carlos Amedee <[email protected]>
- Loading branch information
Showing
5 changed files
with
50 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters