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

Ability to "check in" swift packages. #7514

Open
scott-lydon opened this issue Apr 30, 2024 · 2 comments
Open

Ability to "check in" swift packages. #7514

scott-lydon opened this issue Apr 30, 2024 · 2 comments

Comments

@scott-lydon
Copy link

scott-lydon commented Apr 30, 2024

Description

With Cocoapods we have the ability to track dependencies with git and so we can "Check in" the dependencies into our own project. This saves developers from frequently updating dependencies, or face "bugs" for forgetting to update their dependencies.

Expected behavior

I want to be able to track swift package dependencies, and see them when I open up programs like terminal and sourcetree.

Actual behavior

I don't see swift package manager dependencies available to "check-in"

Steps to reproduce

  1. Clone a repo
  2. Import any swift package.
  3. Open up source tree, and observe the changes are not tracked.

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version && uname -a)

No response

My StackOVerflow inquiry

@rauhul
Copy link
Contributor

rauhul commented May 21, 2024

+1 I would like to a see a swift package vendor command. @DougGregor is this something we could build with the new package manifest editing support, e.g. a CLI and LSP action to vendor a dependency? (There's probably a bit more to it with for still being able to update the vendored package)

@DougGregor
Copy link
Member

It's fairly easy to introduce new packages manifest editing commands with the infrastructure we have. I don't quite know what you want out of "swift package vendor" in terms of other changes (copying in sources? Changing target dependencies?) that might be tricky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants