-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
janet-netrepl and janet-format missing from bundle/init.janet
?
#187
Comments
Thank you for exploring bundle corners! |
Possibly relevant bit from
|
Perhaps this commit may contain something that will help with this issue. |
Using a janet with the commit mentioned in the previous comment, the following diff seems to get things to work: diff --git a/bundle/init.janet b/bundle/init.janet
index b0c2dd7..5a5d7eb 100644
--- a/bundle/init.janet
+++ b/bundle/init.janet
@@ -3,6 +3,10 @@
(defn install [m &]
(bundle/add-file m "src/tarray.h" "tarray.h")
+ (each file (os/dir "bin")
+ (def f (string "bin/" file))
+ (when (= (os/stat f :mode) :file)
+ (bundle/add-bin m f)))
(bundle/add m "spork")
(each file (os/dir "build")
(def f (string "build/" file)) ...but perhaps it feels a bit repetitive? Here's another attempt: diff --git a/bundle/init.janet b/bundle/init.janet
index b0c2dd7..5cb40b3 100644
--- a/bundle/init.janet
+++ b/bundle/init.janet
@@ -4,10 +4,15 @@
(defn install [m &]
(bundle/add-file m "src/tarray.h" "tarray.h")
(bundle/add m "spork")
- (each file (os/dir "build")
- (def f (string "build/" file))
- (when (= (os/stat f :mode) :file)
- (bundle/add-file m f (string "spork/" file)))))
+ (each dir ["bin" "build"]
+ (each file (os/dir dir)
+ (def f (string dir "/" file))
+ (when (= (os/stat f :mode) :file)
+ (cond
+ (= "bin" dir)
+ (bundle/add-bin m f)
+ (= "build" dir)
+ (bundle/add-file m f (string "spork/" file)))))))
(defn clean [&]
(sh/rm "build")) Not sure if that's a net win... |
As another piece of info regarding destinations, there is this line in jpm's source: :binpath (string prefix "/bin") I guess this tends to end up at a different location compared to Probably obvious, but IIUC the above is for *nixy systems and doesn't apply as-is for Windows. |
So taking a look at this, spork should be updated now. As for binpath, we are taking a different approach with installing scripts with bundle. All scripts will now just be installed to |
Thanks for the clarification. |
After installing via
(bundle/install ".")
, I don't getjanet-netrepl
orjanet-format
on myPATH
.May be they need to get mentioned in bundle/init.janet?
I wasn't sure how to indicate where they should get installed. In some testing, I used a destination via relative paths, but wasn't confident that is advisable.
Something like:
The text was updated successfully, but these errors were encountered: