realm / realm-swift

Realm is a mobile database: a replacement for Core Data & SQLite
https://realm.io
Apache License 2.0
16.27k stars 2.14k forks source link

SwiftPackageManger print "skipping cache due to an error" warning for realm-swift #8534

Closed VictorVlakh closed 5 months ago

VictorVlakh commented 5 months ago

How frequently does the bug occur?

Always

Description

When add https://github.com/realm/realm-swift repository via SwiftPackageManager, in the logs I see the following warning:

skipping cache due to an error: https://github.com/realm/realm-swift: The repository could not be found. Make sure a valid repository exists at the specified location and try again.

Screenshot 2024-04-02 at 09 38 05

Realm: 10.49.1

Stacktrace & log output

No response

Can you reproduce the bug?

Always

Reproduction Steps

  1. Create new project
  2. Add realm-swift via SwiftPackageManager
  3. Reset package caches

Version

10.49.1

What Atlas Services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

mac os (14.1)

Build environment

Xcode version: 15.3 Dependency manager and version: SwiftPackageManager

sync-by-unito[bot] commented 5 months ago

➤ PM Bot commented:

Jira ticket: RCOCOA-2327

Jaycyn commented 5 months ago

Maybe just a typo but by the screenshot, the path is not correct. The repository that should be added has a .git extension on the end:

https://github.com/realm/realm-swift.git

not

https://github.com/realm/realm-swift

see

Realm Installation

I just tried it with yours and got the same error. Adding .git make it work correctly without the error.

VictorVlakh commented 5 months ago

@Jaycyn Thank you very much, it was really typo :)

nerzh commented 5 months ago

@Jaycyn thanks 👍