File tree 3 files changed +4
-10
lines changed
Plugins/AWSLambdaPackager
Sources/AWSLambdaRuntimeCore
3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -220,13 +220,8 @@ struct AWSLambdaPackager: CommandPlugin {
220
220
try FileManager . default. createDirectory ( atPath: workingDirectory. path ( ) , withIntermediateDirectories: true )
221
221
222
222
// rename artifact to "bootstrap"
223
- let relocatedArtifactPath = workingDirectory. appending ( path: artifactPath. lastPathComponent)
224
- let symbolicLinkPath = workingDirectory. appending ( path: " bootstrap " )
223
+ let relocatedArtifactPath = workingDirectory. appending ( path: " bootstrap " )
225
224
try FileManager . default. copyItem ( atPath: artifactPath. path ( ) , toPath: relocatedArtifactPath. path ( ) )
226
- try FileManager . default. createSymbolicLink (
227
- atPath: symbolicLinkPath. path ( ) ,
228
- withDestinationPath: relocatedArtifactPath. lastPathComponent
229
- )
230
225
231
226
var arguments : [ String ] = [ ]
232
227
#if os(macOS) || os(Linux)
@@ -235,7 +230,6 @@ struct AWSLambdaPackager: CommandPlugin {
235
230
" --symlinks " ,
236
231
zipfilePath. lastPathComponent,
237
232
relocatedArtifactPath. lastPathComponent,
238
- symbolicLinkPath. lastPathComponent,
239
233
]
240
234
#else
241
235
throw Errors . unsupportedPlatform ( " can't or don't know how to create a zip file on this platform " )
Original file line number Diff line number Diff line change 13
13
//===----------------------------------------------------------------------===//
14
14
15
15
import Dispatch
16
+ import Foundation
16
17
import PackagePlugin
17
18
import Synchronization
18
- import Foundation
19
19
20
20
@available ( macOS 15 . 0 , * )
21
21
struct Utils {
Original file line number Diff line number Diff line change 14
14
15
15
import Foundation
16
16
import Logging
17
- import NIOCore
18
17
import NIOConcurrencyHelpers
18
+ import NIOCore
19
19
20
20
// We need `@unchecked` Sendable here, as `NIOLockedValueBox` does not understand `sending` today.
21
21
// We don't want to use `NIOLockedValueBox` here anyway. We would love to use Mutex here, but this
22
22
// sadly crashes the compiler today.
23
23
public final class LambdaRuntime < Handler> : @unchecked Sendable where Handler: StreamingLambdaHandler {
24
24
// TODO: We want to change this to Mutex as soon as this doesn't crash the Swift compiler on Linux anymore
25
- let handlerMutex : NIOLockedValueBox < Optional < Handler > >
25
+ let handlerMutex : NIOLockedValueBox < Handler ? >
26
26
let logger : Logger
27
27
let eventLoop : EventLoop
28
28
You can’t perform that action at this time.
0 commit comments