script-loader icon indicating copy to clipboard operation
script-loader copied to clipboard

refactor(index): use `stringifyRequest` to avoid absolute paths (`loaderUtils.stringifyRequest`)

Open jimedelstein opened this issue 7 years ago • 13 comments

Per webpack documentation on building loaders (https://webpack.github.io/docs/how-to-write-a-loader.html), loaders should not use absolute paths, but this one does. This PR fixes the problem.

jimedelstein avatar Oct 26 '17 19:10 jimedelstein

CLA assistant check
All committers have signed the CLA.

jsf-clabot avatar Oct 26 '17 19:10 jsf-clabot

@jimedelstein - You will need to sign the CLA before this can move forward

joshwiens avatar Oct 28 '17 04:10 joshwiens

@jimedelstein friendly ping

alexander-akait avatar Jun 01 '18 11:06 alexander-akait

@jimedelstein Please sign the CLA. Otherwise I'm going to close this PR within the next ~48-72 hours due to the missing CLA signment

michael-ciniawsky avatar Sep 12 '18 13:09 michael-ciniawsky

@michael-ciniawsky I've signed it, unfortunately I didn't properly configure my git user when I made this commit. I was able to repair it and rebase it but I think I will have to make a new PR because it's still showing the default author info in addition to the correct info. Haven't had this problem before, please confirm that's the correct next step and there's not an easier way. Thanks

jimedelstein avatar Sep 12 '18 14:09 jimedelstein

(Squash the commits into one) and then

git commit --amend --author="Author Name <[email protected]>"

using the e-mail address matching with your Github Account or open an new PR

michael-ciniawsky avatar Sep 12 '18 14:09 michael-ciniawsky

@michael-ciniawsky That's what basically what I did (I used rebase instead of squash). When I wrote that it showed both committers, but now it seems to be working, so I guess we're good now?

jimedelstein avatar Sep 12 '18 21:09 jimedelstein

@jimedelstein Please address the tiny nit mentioned https://github.com/webpack-contrib/script-loader/pull/49#discussion_r217201570 so I can proceed here :)

michael-ciniawsky avatar Sep 26 '18 18:09 michael-ciniawsky

@michael-ciniawsky done (finally!)

jimedelstein avatar Oct 23 '18 16:10 jimedelstein

@michael-ciniawsky any news on this? script-loader completely breaks consistent hashing across different machines if it's using absolute paths. See this article about it: https://medium.com/@the_teacher/webpack-different-assets-hashes-on-different-machines-the-problem-the-solution-ec6383983b99

Can this be looked at urgently?

garygreen avatar Apr 23 '19 13:04 garygreen

I too am very interested in this. Thanks.

halfnibble avatar Jul 09 '19 23:07 halfnibble

@michael-ciniawsky @evilebottnawi @sokra It's pretty rediclous that this hasn't been fixed yet. There's been a PR from the community trying to fix this issue since 2017, over 2 years and the last release of script-loader was back in Sep 2017 - is this project still maintained anymore? If the maintainers aren't willing to maintain it then can you at least deprecate/mark the project as abandoned because it really isn't fair to the community to let bugs like this sit around for so long.

Appreciate all the work and time that goes into maintaining a project but we do need more feedback and guidance from the maintainers.

garygreen avatar Oct 29 '19 16:10 garygreen

@garygreen yes, loader is abandoned :disappointed: You can help to us with this, if you have time for this just ping me again and i will add access to the repository

alexander-akait avatar Oct 29 '19 17:10 alexander-akait