File tree Expand file tree Collapse file tree 3 files changed +8
-11
lines changed
integration/testdata/variables Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 5
5
package environment
6
6
7
7
import (
8
- "fmt"
9
-
10
8
"github.com/siderolabs/bldr/internal/pkg/constants"
11
9
"github.com/siderolabs/bldr/internal/pkg/types"
12
10
)
13
11
14
12
// Default returns default values for environment variables.
15
13
func Default () types.Variables {
16
14
return types.Variables {
17
- "CFLAGS" : "-g0 -Os" ,
18
- "CXXFLAGS" : "-g0 -Os" ,
19
- "LDFLAGS" : "-s" ,
20
- "VENDOR" : "talos" ,
21
- "SYSROOT" : "/talos" ,
22
- "TOOLCHAIN" : "/toolchain" ,
23
- "PATH" : fmt .Sprintf ("/toolchain/bin:%s" , constants .DefaultPath ),
15
+ "CFLAGS" : "-g0 -Os" ,
16
+ "CXXFLAGS" : "-g0 -Os" ,
17
+ "LDFLAGS" : "-s" ,
18
+ "VENDOR" : "talos" ,
19
+ "SYSROOT" : "/talos" ,
20
+ "PATH" : constants .DefaultPath ,
24
21
}
25
22
}
Original file line number Diff line number Diff line change 10
10
- test -f /result/global_A
11
11
- test -f /result/global_B
12
12
- test -f /result/talos
13
- - test -d /result/toolchain
13
+ - test -d /result/a-talos
14
14
- test -f /result/toplevel
15
15
- test -f /result/toplevel-toplevel-packagelevel
16
16
- test -f /result/testtag
Original file line number Diff line number Diff line change 6
6
7
7
build :
8
8
- touch /root/{{ .VENDOR }} # std vars are available for templates
9
- - mkdir /root$TOOLCHAIN # std vars are available as env vars
9
+ - mkdir /root/a-$VENDOR # std vars are available as env vars
10
10
11
11
test :
12
12
- test "${PATH:-x}" = "{{ .PATH }}" # std vars are available as env vars and templates
You can’t perform that action at this time.
0 commit comments