Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

‎arduino/builder/builder.go‎

Lines changed: 3 additions & 1 deletion
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
}

‎internal/integrationtest/compile_3/compile_show_properties_test.go‎

Lines changed: 1 addition & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /