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

Swift file breaks rile naming rules on certain platforms #361

Closed
matej opened this issue Sep 30, 2020 · 3 comments
Closed

Swift file breaks rile naming rules on certain platforms #361

matej opened this issue Sep 30, 2020 · 3 comments
Assignees
Milestone

Comments

@matej
Copy link

matej commented Sep 30, 2020

Describe the bug

I just broke Git checkouts four our Windows clients when committing a RevenueCat update to the iOS portion of our monorepo.

Specifically those two files break Windows file naming rules:

I solved this by removing the offending characters (< >) and using ArraySlice-UInt8+Extensions.swift as the file name instead. I'd recommend that you do something similar to make updates easier for repositories with shared code.

  1. Environment

    1. Platform: iOS
    2. SDK version: 3.7.2
    3. OS version: Windows 10
    4. Xcode version: Not relevant.
    5. How widespread is the issue. Percentage of devices affected: Not relevant.
  2. Steps to reproduce, with a description of expected vs. actual behavior

Try checking out your repo on a Windows machine. You should get an error. Here's the one we got:

git pull
...
error: invalid path 'iOS/Viewer/Vendor/RevenueCat/PurchasesCoreSwift/LocalReceiptParsing/DataConverters/ArraySlice<UInt8>+Extensions.swift'

Instead it should just work.

  1. Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)

More info on this topic: https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file. We'll be implementing Danger checks to check for safe file names in the future. You could consider the same.

@matej matej added the bug label Sep 30, 2020
@aboedo aboedo self-assigned this Sep 30, 2020
@aboedo
Copy link
Member

aboedo commented Sep 30, 2020

Thanks for reporting! I'll update the file names.

@aboedo
Copy link
Member

aboedo commented Oct 1, 2020

@matej version 3.7.3 has been released and includes the file name fix. Thanks again for reporting!

@aboedo aboedo closed this as completed Oct 1, 2020
@matej
Copy link
Author

matej commented Oct 2, 2020

Thank you for fixing it so quickly!

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

2 participants