Skip to content

Commit bbfdc04

Browse files
authored
Added 'sketch_path' to build properties (#2372)
1 parent a1fad63 commit bbfdc04

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Diff for: arduino/builder/builder.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ func NewBuilder(
131131
if boardBuildProperties != nil {
132132
buildProperties.Merge(boardBuildProperties)
133133
}
134-
134+
if sk != nil {
135+
buildProperties.SetPath("sketch_path", sk.FullPath)
136+
}
135137
if buildPath != nil {
136138
buildProperties.SetPath("build.path", buildPath)
137139
}

Diff for: internal/integrationtest/compile_3/compile_show_properties_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ func TestCompileShowProperties(t *testing.T) {
4848
require.NoError(t, err, "Output must be a clean property list")
4949
require.Empty(t, stderr)
5050
require.True(t, props.ContainsKey("archive_file_path"))
51+
require.True(t, props.ContainsKey("sketch_path"))
5152
require.NotContains(t, props.Get("archive_file_path"), "{build.path}")
5253

5354
// Test --show-properties --format JSON output is clean

0 commit comments

Comments
 (0)