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-4367] SPM crashes when the user deletes the package checkouts directory #5058

Closed
tayloraswift opened this issue Mar 26, 2017 · 0 comments
Assignees
Labels

Comments

@tayloraswift
Copy link

Previous ID SR-4367
Radar None
Original Reporter @Kelvin13
Type Bug
Status Resolved
Resolution Done
Environment

Swift 3.1-dev (march 26). Ubuntu 17.04

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

md5: 26d9219012a9501dbdfa62d2b9e8156f

cloned to:

  • SR-4898 SPM crashes when rebuilding project

relates to:

  • SR-4394 Eliminate path from Manifest model

Issue Description:

If I manually clean out the `.build/checkouts/` directory (for example, to force a refetch of the package sources), the SPM crashes with

fatal error: 'try!' expression unexpectedly raised an error: PackageModel.Package.Error.noManifest(baseURL: "/home/kelvin/dev/Diannamy/GLFW", version: Optional("1.0.0")): file /home/buildnode/disk1/workspace/oss-swift-3.1-package-linux-ubuntu-16_10/swift/stdlib/public/core/ErrorType.swift, line 182
Current stack trace:
0    libswiftCore.so                    0x00007fa7ff10a760 swift_reportError + 120
1    libswiftCore.so                    0x00007fa7ff1251a0 _swift_stdlib_reportFatalErrorInFile + 100
2    libswiftCore.so                    0x00007fa7fef1f4bc <unavailable> + 1189052
3    libswiftCore.so                    0x00007fa7ff0b784d <unavailable> + 2861133
4    libswiftCore.so                    0x00007fa7fef1ec96 <unavailable> + 1186966
5    libswiftCore.so                    0x00007fa7ff0bd760 <unavailable> + 2885472
6    libswiftCore.so                    0x00007fa7fef1f0cf <unavailable> + 1188047
7    libswiftCore.so                    0x00007fa7ff07e479 <unavailable> + 2626681
8    libswiftCore.so                    0x00007fa7fef1ec96 <unavailable> + 1186966
9    libswiftCore.so                    0x00007fa7ff03b5f0 specialized _assertionFailure(StaticString, String, file : StaticString, line : UInt, flags : UInt32) -> Never + 144
10   libswiftCore.so                    0x00007fa7fef47db5 <unavailable> + 1355189
11   swift-build                        0x0000000000656131 <unavailable> + 2449713
12   swift-build                        0x0000000000656256 <unavailable> + 2450006
13   swift-build                        0x0000000000630c73 <unavailable> + 2296947
14   swift-build                        0x0000000000652e84 <unavailable> + 2436740
15   swift-build                        0x0000000000470d8e <unavailable> + 462222
16   swift-build                        0x0000000000630495 <unavailable> + 2294933
17   swift-build                        0x00000000006312c8 <unavailable> + 2298568
18   swift-build                        0x000000000066b041 <unavailable> + 2535489
19   swift-build                        0x0000000000679a0e <unavailable> + 2595342
20   swift-build                        0x000000000068156b <unavailable> + 2626923
21   swift-build                        0x000000000066aee6 <unavailable> + 2535142
22   swift-build                        0x000000000040f696 <unavailable> + 63126
23   libc.so.6                          0x00007fa7fd07b300 __libc_start_main + 241
24   swift-build                        0x000000000040f49a <unavailable> + 62618
Makefile:21: recipe for target 'build' failed
make: *** [build] Illegal instruction (core dumped)
@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

1 participant