Projects
Eulaceura:Mainline
goversioninfo
_service:obs_scm:0001-Force-using-vendor-for-RP...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0001-Force-using-vendor-for-RPM-packaging.patch of Package goversioninfo
From 515be5c0f20c0cdb7ce07e1afab6e90c2e67c1a3 Mon Sep 17 00:00:00 2001 From: wangyueliang <wangyueliang@kylinos.cn> Date: Tue, 8 Mar 2022 15:19:43 +0800 Subject: [PATCH] Force using vendor for RPM packaging --- Makefile | 2 +- testdata/bash/build.sh | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index bbaa672..73787e2 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,6 @@ test-go: .PHONY: test-integration test-integration: # Build the application. - mkdir -p bin && go build -o bin/goversioninfo cmd/goversioninfo/main.go + mkdir -p bin && go build -mod=vendor -o bin/goversioninfo cmd/goversioninfo/main.go # Test the application. PATH="${PATH}:$(shell pwd)/bin" ./testdata/bash/build.sh \ No newline at end of file diff --git a/testdata/bash/build.sh b/testdata/bash/build.sh index 6751525..fd04ce7 100755 --- a/testdata/bash/build.sh +++ b/testdata/bash/build.sh @@ -5,24 +5,24 @@ set -e # Test Windows 32. cd testdata/example32 -GOOS=windows GOARCH=386 go generate -GOOS=windows GOARCH=386 go build +GOOS=windows GOARCH=386 go generate -mod=vendor +GOOS=windows GOARCH=386 go build -mod=vendor rm example32.exe rm resource.syso cd ../../ # Test Windows 64. cd testdata/example64 -GOOS=windows GOARCH=amd64 go generate -GOOS=windows GOARCH=amd64 go build +GOOS=windows GOARCH=amd64 go generate -mod=vendor +GOOS=windows GOARCH=amd64 go build -mod=vendor rm example64.exe rm resource.syso cd ../../ # Test Windows 64 with Go output file. cd testdata/example64-gofile -GOOS=windows GOARCH=amd64 go generate -GOOS=windows GOARCH=amd64 go build +GOOS=windows GOARCH=amd64 go generate -mod=vendor +GOOS=windows GOARCH=amd64 go build -mod=vendor rm example64-gofile.exe rm resource.syso rm versioninfo.go -- 2.30.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2