Open
Conversation
MartinFillon
requested changes
Jan 20, 2026
Contributor
MartinFillon
left a comment
There was a problem hiding this comment.
Why is this pr doing all those things, upgrading versions, changing code, adding dockerfile. It is cluttery.
Comment on lines
+1
to
+11
| #!/bin/sh | ||
| set -e | ||
|
|
||
| # Run command with nf if the first argument contains a "-" or is not a system command. The last | ||
| # part inside the "{}" is a workaround for the following bug in ash/dash: | ||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 | ||
| if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then | ||
| set -- nf "$@" | ||
| fi | ||
|
|
||
| exec "$@" |
Member
Author
There was a problem hiding this comment.
To override the node docker entrypoint
Comment on lines
+1
to
+21
| #!/bin/sh | ||
| basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") | ||
|
|
||
| case `uname` in | ||
| *CYGWIN*|*MINGW*|*MSYS*) | ||
| if command -v cygpath > /dev/null 2>&1; then | ||
| basedir=`cygpath -w "$basedir"` | ||
| fi | ||
| ;; | ||
| esac | ||
|
|
||
| if [ -z "$NODE_PATH" ]; then | ||
| export NODE_PATH="/usr/nanoforge/node_modules" | ||
| else | ||
| export NODE_PATH="/usr/nanoforge/node_modules:$NODE_PATH" | ||
| fi | ||
| if [ -x "$basedir/node" ]; then | ||
| exec "$basedir/node" "$basedir/cli/dist/nf.js" "$@" | ||
| else | ||
| exec node "$basedir/cli/dist/nf.js" "$@" | ||
| fi |
Contributor
There was a problem hiding this comment.
cant we just use a release version of nanoforge instead of that ?
Member
Author
There was a problem hiding this comment.
what do you mean by that ?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Resolves #13
Resolves #48
How do you test this PR?