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

Add swift experimental-destination install subcommand #6023

Merged
merged 24 commits into from
Feb 9, 2023

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Jan 6, 2023

Depends on #6127.

Motivation:

Cross-compilation destinations pitch includes install subcommand for installing artifact bundles.

Modifications:

Added new InstallDestination subcommand that takes a single argument for a bundle to install from.

Result:

swift experimental-destination install is available for installing destination bundles.

@MaxDesiatov MaxDesiatov added the WIP Work in progress label Jan 6, 2023
let cwd = fileSystem.currentWorkingDirectory,
let bundlePath = try? AbsolutePath(validating: bundlePathOrURL, relativeTo: cwd)
{
try fileSystem.move(from: bundlePath, to: destinationsDirectory)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move or copy?


let observabilitySystem = ObservabilitySystem(
SwiftToolObservabilityHandler(outputStream: stdoutStream, logLevel: .warning)
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this is a repeated pattern we can potential define a SwiftToolObservabilitySystem that takes optional output stream and log level but defaults to stdout and warn

@MaxDesiatov MaxDesiatov self-assigned this Jan 9, 2023
Base automatically changed from maxd/argument-parser-update to main January 10, 2023 09:09
@MaxDesiatov MaxDesiatov force-pushed the maxd/destination-install-subcommand branch from a192041 to a48658d Compare January 10, 2023 15:03
@MaxDesiatov MaxDesiatov changed the base branch from main to maxd/httpclient-async-execute January 10, 2023 15:03
@MaxDesiatov MaxDesiatov force-pushed the maxd/destination-install-subcommand branch from a48658d to 1299e15 Compare January 10, 2023 15:04
@MaxDesiatov MaxDesiatov force-pushed the maxd/httpclient-async-execute branch 7 times, most recently from b52f9d4 to 3e91487 Compare January 25, 2023 13:32
@MaxDesiatov MaxDesiatov force-pushed the maxd/httpclient-async-execute branch 4 times, most recently from 47191c8 to 219ede1 Compare January 31, 2023 18:30
Base automatically changed from maxd/httpclient-async-execute to main February 1, 2023 10:12
@MaxDesiatov MaxDesiatov force-pushed the maxd/destination-install-subcommand branch from 3c19a23 to ad41134 Compare February 7, 2023 16:40
@MaxDesiatov MaxDesiatov changed the base branch from main to maxd/use-main-attribute February 7, 2023 16:41
Base automatically changed from maxd/use-main-attribute to main February 7, 2023 19:01
@MaxDesiatov MaxDesiatov marked this pull request as ready for review February 7, 2023 19:02
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov MaxDesiatov enabled auto-merge (squash) February 8, 2023 19:06
…xd/destination-install-subcommand

# Conflicts:
#	Sources/SPMTestSupport/MockHashAlgorithm.swift
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov
Copy link
Contributor Author

swiftlang/sourcekit-lsp#711

@swift-ci test Windows

@MaxDesiatov
Copy link
Contributor Author

swiftlang/sourcekit-lsp#711

@swift-ci test Windows

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov
Copy link
Contributor Author

swiftlang/sourcekit-lsp#711

@swift-ci test Windows

@MaxDesiatov MaxDesiatov merged commit c00705d into main Feb 9, 2023
@MaxDesiatov MaxDesiatov deleted the maxd/destination-install-subcommand branch February 9, 2023 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants