@@ -68,21 +68,36 @@ pipeline:
68
68
rm -rf "${{targets.destdir}}"/usr/lib/go/pkg/tool/*/go_bootstrap
69
69
rm -rf "${{targets.destdir}}"/usr/lib/go/src/cmd/dist/dist
70
70
71
- # Remove tests from /usr/lib/go/src, not needed at runtime
72
- find "${{targets.destdir}}"/usr/lib/go/src \( -type f -a -name "*_test.go" \) \
73
- -exec rm -rf \{\} \+
74
- find "${{targets.destdir}}"/usr/lib/go/src \( -type d -a -name "testdata" \) \
75
- -exec rm -rf \{\} \+
76
- find "${{targets.destdir}}"/usr/lib/go/src \( -type f -a -name "*.rc" \) \
77
- -exec rm -rf \{\} \+
78
- find "${{targets.destdir}}"/usr/lib/go/src \( -type f -a -name "*.bat" \) \
79
- -exec rm -rf \{\} \+
80
- find "${{targets.destdir}}"/usr/lib/go/src \( -type f -a -name "*.pem" \) \
81
- -exec rm -rf \{\} \+
82
-
83
71
- uses : strip
84
72
85
73
subpackages :
74
+ - name : " ${{package.name}}-src"
75
+ description : " go source code and tests"
76
+ dependencies :
77
+ runtime :
78
+ - ${{package.name}}=${{package.full-version}}
79
+ pipeline :
80
+ - runs : |
81
+ cd ${{targets.destdir}}/
82
+ mkdir -p ${{targets.subpkgdir}}
83
+ find . -name '*_test.go' -exec cp -v --parents -r '{}' ${{targets.subpkgdir}} \;
84
+ find . -name 'testdata' -exec cp -v --parents -r '{}' ${{targets.subpkgdir}} \;
85
+ find . -name '*.rc' -exec cp -v --parents -r '{}' ${{targets.subpkgdir}} \;
86
+ find . -name '*.bat' -exec cp -v --parents -r '{}' ${{targets.subpkgdir}} \;
87
+ find . -name '*.pem' -exec cp -v --parents -r '{}' ${{targets.subpkgdir}} \;
88
+
89
+ find . -name '*_test.go' -exec rm -f '{}' \;
90
+ find . -name 'testdata' -exec rm -f '{}' \;
91
+ find . -name '*.rc' -exec rm -f '{}' \;
92
+ find . -name '*.bat' -exec rm -f '{}' \;
93
+ find . -name '*.pem' -exec rm -f '{}' \;
94
+
95
+ test :
96
+ pipeline :
97
+ - name : Test Semver fix
98
+ runs : |
99
+ go test -a -v cmd/go -run=Script/build_version_stamping_git
100
+
86
101
- name : " ${{package.name}}-doc"
87
102
description : " go documentation"
88
103
pipeline :
0 commit comments