GameMakerHub / Catalyst

A tool for Game Maker Studio 2 to manage dependencies and speed up your process
https://gamemakerhub.net/catalyst
MIT License
10 stars 2 forks source link

Catalyst - git integration issue #22

Closed Katipo007 closed 5 years ago

Katipo007 commented 5 years ago

When switching devices (thus working with a different local copy of the git repository) and running catalyst install to have the vendor files installed for this local copy fails, producing the error:

In StorageService.php line 48:

File does not exist or is not a file: C:/<path>/views/<viewId>.yy

install [-d|--dry-run]

It cannot find this file because it was added to the .gitignore by catalyst and so wasn't in the repository to pull to the local copy.

The suggested catalyst install --dry-run produces the same error.

Version 0.2.0-alpha

RobQuistNL commented 5 years ago

Does that .gitignore file contain full pathnames? IIRC it should contain local path names and thus shouldn't be an issue. What OS are you using?

Katipo007 commented 5 years ago

OS: Windows 10

Pathnames in the .gitignore are relative:

...
scripts/pulse
scripts/color_lerp
views/86336395-3fd9-67e2-0521-61854eb28499.yy
...
RobQuistNL commented 5 years ago

Thanks! I'l see if I can reproduce this soon.

RobQuistNL commented 5 years ago

Ah! Nice find. I've been able to reproduce it - I've added a "stray resource" check in quite late, but this is conflicting. I'll be writing tests for both the issues you've submitted, for now I've got 2 MR's ready with the fixes.