Skip to content

Commit

Permalink
Merge pull request #491 from flipt-io/ars-202410301359
Browse files Browse the repository at this point in the history
swift packaging: remove leading slash on tree-filter
  • Loading branch information
arussellsaw authored Oct 30, 2024
2 parents 8f30bb9 + 0d07df9 commit 7ce6cb3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions package/ffi/sdks/swift.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,13 @@ func (s *SwiftSDK) Build(ctx context.Context, client *dagger.Client, hostDirecto
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")).
WithFile("Sources/FliptEngineFFI.xcframework/ios-arm64/libfliptengine.a", hostDirectory.File("tmp/glibc/ios_arm64/libfliptengine.a")).
WithFile("Sources/FliptEngineFFI.xcframework/ios-arm64-simulator/libfliptengine.a", hostDirectory.File("tmp/glibc/ios_arm64_sim/libfliptengine.a"))
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 .",
"--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/",
"--", opts.Tag})

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

0 comments on commit 7ce6cb3

Please sign in to comment.