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

[SR-6638] Occasionally need to rm -rf when changing dependencies #4902

Closed
swift-ci opened this issue Dec 19, 2017 · 3 comments
Closed

[SR-6638] Occasionally need to rm -rf when changing dependencies #4902

swift-ci opened this issue Dec 19, 2017 · 3 comments
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-6638
Radar rdar://problem/34302690
Original Reporter p_thompson (JIRA User)
Type Bug
Status Resolved
Resolution Done
Environment

macOS

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 3b9d4d040de47bcb920b9952642ddfbf

is duplicated by:

  • SR-7386 switching between similar packages breaks swift package update

Issue Description:

Suppose I fork a dependency to test a change, and adjust my Package.swift to point to it. Later, after a few builds, I decide it was a bad idea and revert my Package.swift to the old repo. Now, I must `rm -rf .build` to compile.

What appears to happen is the next swift build will fail with something like

error: terminated(128): git -C /My/Package/.build/repositories/some-repo.git--4899257340567273111 remote update -p
error: product dependency 'SomeModule' not found

which is because `some-repo.git` actually has a different suffix number, so there is content in `.build/repositories/some-repo.git-7785354365974529063` that prevents the build from continuing. `swift package clean` doesn't resolve this, and I need to `rm -rf .build` manually.

@swift-ci
Copy link
Contributor Author

Comment by Paul Thompson (JIRA)

My bad, I think this is what build reset is for. Though the ability to get into this state is weird still.

@ankitspd
Copy link
Member

@swift-ci create

@ankitspd
Copy link
Member

#1739

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants