You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
Continuation of Issue#14 which seemed to be closed by insisting on building with a BASH console.
The bug is that I still get the "need to invoke from the root 'kelp' directory" error when trying to build the project on the Git Bash console on my windows computer.
Expected behavior
I think the correct behavior is to be able to build the program with the bash console that is packaged with Git
Frequency
The frequency is always
Steps To Reproduce
Here are the steps to reproduce the issue (see attachments in section below):
On a windows 10 machine download git and include the git bash console
Follow the build from source instructions on the readme with the bash console
When you I try ./scripts/build.sh the script exits with the message "need to invoke from the root 'kelp' directory" even though I have already moved into the 'kelp' directory per the instructions.
Possible Solution
After some research (Git bash doesn't recognize 'rev' command), it appears that "rev is an external command (a separate executable), not part of the shell itself; it's thus not part of any version of bash, but something that exists (or doesn't) depending on whether your it's been separately installed (or included with your operating system &c)".
As mentioned Issue#14 comment the problem is in the line pwd | rev | cut -d'/' -f1 | rev which can be rewritten as either (more research) $(basename $("pwd"))
or pwd | sed 's#.*/##'
Both have worked on my system and I have little linux experience to known whether either will cause issues in other environments. With that being said, my preference is for the first solution as I find it more readable.
Your Environment
When successfully run my environment is:
Context
As a predominantly windows user, I have found the git bash console to be the easiest one to use out of the box and is the most user friendly for those unfamiliar with unix. In order to clone the kelp repo, most users will already have git installed and likely already have this console. As such and baring integration issues with other systems, it makes sense to to try to restrict the bash scripts to commands that are native to bash whenever possible.
Attachments
The text was updated successfully, but these errors were encountered:
Describe the bug
Continuation of Issue#14 which seemed to be closed by insisting on building with a BASH console.
The bug is that I still get the "need to invoke from the root 'kelp' directory" error when trying to build the project on the Git Bash console on my windows computer.
Expected behavior
I think the correct behavior is to be able to build the program with the bash console that is packaged with Git
Frequency
The frequency is always
Steps To Reproduce
Here are the steps to reproduce the issue (see attachments in section below):
./scripts/build.sh
the script exits with the message "need to invoke from the root 'kelp' directory" even though I have already moved into the 'kelp' directory per the instructions.Possible Solution
After some research (Git bash doesn't recognize 'rev' command), it appears that "rev is an external command (a separate executable), not part of the shell itself; it's thus not part of any version of bash, but something that exists (or doesn't) depending on whether your it's been separately installed (or included with your operating system &c)".
As mentioned Issue#14 comment the problem is in the line
pwd | rev | cut -d'/' -f1 | rev
which can be rewritten as either (more research)$(basename $("pwd"))
or
pwd | sed 's#.*/##'
Both have worked on my system and I have little linux experience to known whether either will cause issues in other environments. With that being said, my preference is for the first solution as I find it more readable.
Your Environment
When successfully run my environment is:
Context
As a predominantly windows user, I have found the git bash console to be the easiest one to use out of the box and is the most user friendly for those unfamiliar with unix. In order to clone the kelp repo, most users will already have git installed and likely already have this console. As such and baring integration issues with other systems, it makes sense to to try to restrict the bash scripts to commands that are native to bash whenever possible.
Attachments
The text was updated successfully, but these errors were encountered: