-
Notifications
You must be signed in to change notification settings - Fork 96
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
Added std lib files into installer #640
base: staging
Are you sure you want to change the base?
Conversation
2 more things @Ph0enixKM I'd like to brirng in your account. I think the project needs a rename from
Usage: amber [OPTIONS] [INPUT] [ARGS]... [COMMAND]
Commands:
eval Execute Amber code fragment
run Execute Amber script
check Check Amber script for errors
build Compile Amber script to Bash
docs Generate Amber script documentation
completion Generate Bash completion script
help Print this message or the help of the given subcommand(s)
Arguments:
[INPUT] Input filename ('-' to read from stdin)
[ARGS]... Arguments passed to Amber script
Options:
--no-proc <NO_PROC> Disable a postprocessor
Available postprocessors: 'shfmt', 'bshchk'
To select multiple, pass multiple times with different values
Argument also supports a wilcard match, like "*" or "s*mt"
-h, --help Print help
-V, --version Print version I initially thought of alias, but due to this copyright, I am not sure we'll be able to get an alias to amber. |
@soumyaDghosh This project that you shared is not being maintained 7 years now. It seems that it's something that they abandoned long time ago. I think that there is no problem with us sticking to the name "amber". Quite frankly anyone could name their project "amber". But unless this name is not widely recognized in the shell scripting environment, I'd say it's still a good one. You've mistaken copyright for trademark, @soumyaDghosh |
How can we create an |
You just create a forum post requesting an alias, similar to this Users can anyways create local aliases,
|
I've decided that there are too many installer variations. It needs to be unified. Cargo dist is my pick as it compiles for macos, linux and windows on all architectures and offers easy updates. Packaging is also simple. I added config just for shell installer but homebrew is also an option |
@KrosFire btw since Amber is already installed, can we write uninstaller in Amber itself? |
You're right |
I love this uninstall sentence "see you later 🐊" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't get it. is there some kind of mistake with committing wrong files? why are so many things deleted? how are any of those deletions relevant?
please explain why you had to get rid of all those files, and how will it help you with putting stdlib into the installer. especially since you deleted the installer in question
i strongly suggest that we discuss the change itself in #643 , and reserve this space for code review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leaving comments only, as I do not feel qualified to review installer changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is there a lot of changes to CI? the description says that it is about moving stdlib onto the client machine
which hasn't been properly discussed, by the way
It's relavent because moving std lib to client machine involves changing installation process. CI is automatically generated by cargo dist. |
@b1ek, please explain your concerns about the "irrelevant" parts of code. The snippet you said that are irrelevant from my point of view bring some value like for instance retrieving cached |
i just don't understand why they have to be included in this PR specifically, as there is no info in the description about them. they do provide some value, but the description doesn't say anything about them. so that's irrelevant the way i see it |
I think that the Std files shouldn't be in the installer because a user maybe is not interested in the LSP. The LSP server should include the std itself like other languages does. |
But std lib files are included one way or the other. I just change the way they are included as to not have needless redundancy |
Adding std lib files requires changing how we build release files. We do it with |
just put it in the description, to make it clear to everyone what it does and what is it for |
@Mte90 many popular compilers include standard library installed separately (usually under |
Hello there,
For the LSP I need std lib files on the client machine, and not as a part of the compiler. I didn't touch Nix files as it is scientifically proven fact that it is black magic.
I think there can be a lot of edge cases, so any tests will be most welcome.
I've modified installation scripts
install.ab
/uninstall.ab
/snapcraft.yaml
andcargo-dist
release pipeline to include std lib files.Enjoy.