Skip to content

Commit c334a73

Browse files
committed
Remove shebang from metacall cli npm installer (conflicts with Guix install meanwhile the script is embedded into C/C++).
1 parent 46aafdc commit c334a73

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/examples/metacallcli/package_manager/npm.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace metacallcli {
1616
namespace package_manager {
1717

1818
static const char npm[] =
19-
"#!/usr/bin/env node\n"
19+
"/* #!/usr/bin/env node */ // Shebang fails when inlining the source in a C++ header and installing with Guix (the shebang cannot be patched properly)\n"
2020
"\n"
2121
"/* This has been ripped off from NPM and adapted to be callable instead of invoked by exec */\n"
2222
"\n"

source/examples/metacallcli/package_manager/npm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env node
1+
/* #!/usr/bin/env node */ // Shebang fails when inlining the source in a C++ header and installing with Guix (the shebang cannot be patched properly)
22

33
/* This has been ripped off from NPM and adapted to be callable instead of invoked by exec */
44

0 commit comments

Comments
 (0)