Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import foundationEssentials for the archiver plugin #403

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Plugins/AWSLambdaPackager/Plugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,17 @@
//
//===----------------------------------------------------------------------===//

import Foundation
import PackagePlugin

#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import struct Foundation.URL
import class Foundation.FileManager
import class Foundation.ProcessInfo
import struct Foundation.ObjCBool
#endif

@main
@available(macOS 15.0, *)
struct AWSLambdaPackager: CommandPlugin {
Expand Down
11 changes: 10 additions & 1 deletion Plugins/AWSLambdaPackager/PluginUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,19 @@
//===----------------------------------------------------------------------===//

import Dispatch
import Foundation
import PackagePlugin
import Synchronization

#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import struct Foundation.URL
import struct Foundation.CharacterSet
import struct Foundation.Data
import class Foundation.Pipe
import class Foundation.Process
#endif

@available(macOS 15.0, *)
struct Utils {
@discardableResult
Expand Down
Loading