saleor: Can't checkout saleor repo

What I’m trying to achieve

Locally clone a fork of Saleor

Steps to reproduce the problem

1.Fork mirumee/saleor 2. Locallly execute git clone myfork

What I expected to happen

Expected the checkout process to succeed but instead got the error fatal: cannot create directory at 'saleor/graphql/core/tests/cassettes/test_get_oembed_data[http:': Invalid argument warning: Clone succeeded, but checkout failed. Seems to be due to the colon in the path name as colons are not acceptable characters for Windows paths… The error is also present with another neigbourhing path using https instead of http.

Screenshot

Here is a screenshot of one of the malformed path names mirumee

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 3
  • Comments: 15 (2 by maintainers)

Commits related to this issue

Most upvoted comments

I’ve just hit this problem. It looks like the [ and ] characters in the filename that are causing Windows problems. Is it not possible to just rename these files? This is a pretty serios problem for devs using Windows and it seems like a pretty straight-forward fix, just wondering if there’s something stopping the Saleor devs from doing it?

Thanks @lioden for forking the project 👍

@Megidd : Not to my knowledge. I ended up installing an ubuntu vm and building it from the vm.

Thanks @yoxud

This approach worked for me:

  1. Fork the repository
  2. Clone the fork on Linux
  3. Change the bad path names on Linux
    1. Actually, I just removed them by: rm -rf saleor/graphql/core/tests/cassettes/test_get_oembed_data\[http*
  4. Commit and push
  5. Then check out the fixed fork on Windows

Having removed the bad file paths, the API server is built by instructions and runs just fine as far as tested.