Open tim-elmer opened 1 year ago
It may be worth noting that this issue should eventually be addressed for my particular usecase by https://gitlab.com/antora/antora-ui-default/-/issues/211, but I'd still expect patch-package
to handle missing version info more gracefully.
@tim-elmer one way to fix it would be to make a patch for patch-package
itself, like this: https://github.com/ds300/patch-package/issues/203#issuecomment-616187572
@tim-elmer one way to fix it would be to make a patch for
patch-package
itself, like this: #203 (comment)
While I certainly appreciate that flexibility, I unfortunately don't understand what's going on within patch-package
well enough to fix this myself. I did some digging when I initially realized what was going on, but wasn't able to coax it into ignoring the lack of a version.
I'm attempting to patch a package distributed via Git (Antora's default UI) that doesn't have a version number in its
package.json
. Not terribly surprisingly,patch-package
isn't thrilled about this:I've attempted explicitly installing the package by commit ID to no avail. Am I missing something, or is this currently not supported?
If not, I'd like to request that support be added. I'd expect
patch-package
to patch against the current "version" (in this case, the provided or default Git branch) if no version information is available.