Skip to content
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.

fix: #457 gulp deploy fails in Windows #461

Merged
merged 1 commit into from Apr 3, 2020
Merged

Conversation

izaera
Copy link
Member

@izaera izaera commented Apr 2, 2020

See #457 for a description of what this fixes.

For a reason I don't know, gulp.src() behaves different in Windows and Linux
when relative paths are given so I have changed the path to absolute so that
there is no ambiguity.
Copy link
Contributor

@wincent wincent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For a reason I don't know, gulp.src() behaves different in Windows and Linux when relative paths are given

Well, that is inspiring...

¯\(ツ)

But seeing as you tested it:

looks-good-to-me

@izaera
Copy link
Member Author

izaera commented Apr 2, 2020

I could have investigated it. But I'm lazy... ¯\ (ツ)/¯

@izaera izaera merged commit 137ffdb into liferay:master Apr 3, 2020
@izaera
Copy link
Member Author

izaera commented Apr 3, 2020

Apparently, though the fix did it, it is not a general solution. The real solution is to use unix like paths in globs.

This seems to be by design in gulp, as they use the glob package under the hood and it explicitly requests linux paths to work.

I don't know yet why it worked before. It could be that:

  1. gulp 3 didn't use glob underneath
  2. themes toolkit for gulp 3 provided linux paths as globs and I somehow broke it

Will keep investigating.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants