Skip to content

Commit 5e3abe0

Browse files
committed
fix(sdk/go): gate fake-client examples behind build tag
The example_test.go and example_fake_test.go files import the fake/ package which arrives in PR 2/3. Add a //go:build fakeclient constraint so PR 1/3 builds and tests cleanly on its own. The tag will be removed when the fake package lands. Assisted-By: 🤖 Claude Code Signed-off-by: Roland Huß <[email protected]>
1 parent c386962 commit 5e3abe0

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎sdk/go/openshell/v1/example_fake_test.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

4+
//go:build fakeclient
5+
46
package v1_test
57

68
import (

‎sdk/go/openshell/v1/example_test.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

4+
//go:build fakeclient
5+
46
package v1_test
57

68
import (

0 commit comments

Comments
 (0)