Skip to content

Commit

Permalink
Merge pull request #492 from flipt-io/ars-202410301503
Browse files Browse the repository at this point in the history
fix tree filter again
  • Loading branch information
arussellsaw authored Oct 30, 2024
2 parents 7ce6cb3 + 937b403 commit c486ec4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions package/ffi/sdks/swift.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,13 @@ func (s *SwiftSDK) Build(ctx context.Context, client *dagger.Client, hostDirecto
repository := git.
WithExec([]string{"git", "clone", "https://github.com/flipt-io/flipt-client-sdks.git", "/src"}).
WithWorkdir("/src").
WithFile("Sources/FliptEngineFFI.xcframework/ios-arm64/Headers/flipt_engine.h", hostDirectory.File("flipt-engine-ffi/include/flipt_engine.h")).
WithFile("Sources/FliptEngineFFI.xcframework/ios-arm64-simulator/Headers/flipt_engine.h", hostDirectory.File("flipt-engine-ffi/include/flipt_engine.h")).
WithDirectory("/tmp/ext", hostDirectory.Directory("tmp/glibc"))

filtered := repository.
WithEnvVariable("FILTER_BRANCH_SQUELCH_WARNING", "1").
WithExec([]string{"git", "filter-branch", "-f", "--prune-empty",
"--subdirectory-filter", "flipt-client-swift",
"--tree-filter", "cp -r /tmp/ext/glibc/ios_arm64/libfliptengine.a Sources/FliptEngineFFI.xcframework/ios-arm64/; cp -r /tmp/ext/glibc/ios_arm64_sim/libfliptengine.a Sources/FliptEngineFFI.xcframework/ios-arm64-simulator/",
"--tree-filter", "cp /tmp/ext/ios_arm64/libfliptengine.a Sources/FliptEngineFFI.xcframework/ios-arm64/; cp /tmp/ext/ios_arm64_sim/libfliptengine.a Sources/FliptEngineFFI.xcframework/ios-arm64-simulator/; cp flipt-engine-ffi/include/flipt_engine.h Sources/FliptEngineFFI.xcframework/ios-arm64/; cp flipt-engine-ffi/include/flipt_engine.h Sources/FliptEngineFFI.xcframework/ios-arm64-simulator/",
"--", opts.Tag})

_, err := filtered.Sync(ctx)
Expand Down

0 comments on commit c486ec4

Please sign in to comment.