Skip to content

Commit a4bc31d

Browse files
committed
revert examples to two levels dir structure
1 parent a42741d commit a4bc31d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Plugins/AWSLambdaPackager/Plugin.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@ struct AWSLambdaPackager: CommandPlugin {
132132
// when developing locally, we must have the full swift-aws-lambda-runtime project in the container
133133
// because Examples' Package.swift have a dependency on ../..
134134
// just like Package.swift's examples assume ../.., we assume we are two levels below the root project
135-
let slice = packageDirectory.pathComponents.suffix(3)
135+
let slice = packageDirectory.pathComponents.suffix(2)
136136
try Utils.execute(
137137
executable: dockerToolPath,
138138
arguments: [
139139
"run", "--rm", "--env", "LAMBDA_USE_LOCAL_DEPS=true", "-v",
140-
"\(packageDirectory.path())../../..:/workspace", "-w",
140+
"\(packageDirectory.path())../..:/workspace", "-w",
141141
"/workspace/\(slice.joined(separator: "/"))", baseImage, "bash", "-cl", buildCommand,
142142
],
143143
logLevel: verboseLogging ? .debug : .output

0 commit comments

Comments
 (0)