CertainLach / jrsonnet

Rust implementation of Jsonnet language
MIT License
305 stars 34 forks source link

New release? #70

Open LorisFriedel opened 2 years ago

LorisFriedel commented 2 years ago

Hello!

I wonder when we could expect a new Jrsonnet release?

CertainLach commented 2 years ago

There is new prerelease available on gcmodule branch and here: https://github.com/CertainLach/jrsonnet/releases/tag/v0.5.0-gcmodule-test

It can't be uploaded to crates.io now, because it depends on git dependencies (forks of serde-json and gcmodule), i will publish forked packages to crates.io soon

LorisFriedel commented 2 years ago

There is new prerelease available on gcmodule branch and here: https://github.com/CertainLach/jrsonnet/releases/tag/v0.5.0-gcmodule-test

It can't be uploaded to crates.io now, because it depends on git dependencies (forks of serde-json and gcmodule), i will publish forked packages to crates.io soon

Amazing! Thank you :)

JarvisCraft commented 2 years ago

To be more exact, here are the PRs which include the changes currently needed by jrsonnet:

serde-yaml
gcmodule
LorisFriedel commented 1 year ago

Hello! Following-up this "new release" thread, I was wondering is there is any updates on a potential new release, this implementation of Jsonnet is such a gift for heavy usage it would be awesome to get the latest features and functions from the official implem 🤩

Thanks!

Timmmm commented 10 months ago

I checked those PRs listed above btw:

  1. Yaml 1.1 octal thing was closed and not merged, but dtonlay suggested a workaround that doesn't require it. I don't understand why this project depends on YAML in the first place tbh.
  2. Not sure about this.
  3. This is just an optimisation. Shouldn't block a new release I think?
aslafy-z commented 8 months ago

I built and made available some binaries for the latest commit at https://github.com/aslafy-z/jrsonnet-unstable-builds

ben-manes commented 6 months ago

I tried to use brew install jrsonnet --HEAD and it almost worked. The latest commit was pulled, but it failed

brew install jrsonnet --HEAD
==> Fetching jrsonnet
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/8c472583006bc33bedd5c0a42093b44d35429688/Formula/j/jrsonnet.rb
Already downloaded: /Users/ben/Library/Caches/Homebrew/downloads/18b5d9a5f9a32f9d50be9debccb2de3f8e884e6169954cfd23685a3e891a6958--jrsonnet.rb
==> Cloning https://github.com/CertainLach/jrsonnet.git
Updating /Users/ben/Library/Caches/Homebrew/jrsonnet--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at 0e1ae58 fix: update hi-doc
==> cargo install --path=cmds/jrsonnet
error: unexpected argument '--generate' found

  tip: to pass '--generate' as a value, use '-- --generate'

Usage: jrsonnet <--exec|INPUT>

For more information, try '--help'.
Error: Failure while executing; `\{\"SHELL\"=\>\"bash\"\} /opt/homebrew/Cellar/jrsonnet/HEAD-0e1ae58/bin/jrsonnet - --generate bash` exited with 2. Here's the output:
CertainLach commented 6 months ago

It is now jrsonnet generate <shell> instead of jrsonnet - --generate <shell>

ben-manes commented 6 months ago

whoever owns the homebrew install then needs to change it slightly,

  def install
    system "cargo", "install", *std_cargo_args(path: "cmds/jrsonnet")
    generate_completions_from_executable(bin/"jrsonnet", "-", "--generate")
  end

formula

ben-manes commented 6 months ago

asked the maintainers in homebrew on their last merge before digging into their issue/pr process.

ben-manes commented 6 months ago

brew install jrsonnet --HEAD --verbose --debug

This works with ignore,

error: unexpected argument '--generate' found

  tip: to pass '--generate' as a value, use '-- --generate'

Usage: jrsonnet <--exec|INPUT>

For more information, try '--help'.
/opt/homebrew/Library/Homebrew/ignorable.rb:29:in `block in raise'
ErrorDuringExecution: Failure while executing; `\{\"SHELL\"=\>\"bash\"\} /opt/homebrew/Cellar/jrsonnet/HEAD-0e1ae58/bin/jrsonnet - --generate bash` exited with 2. Here's the output:
1. raise
2. ignore
3. backtrace
4. irb
5. shell
Choose an action: 2
jrsonnet --version
jrsonnet 0.5.0-pre96
aslafy-z commented 6 months ago

I just released https://github.com/CertainLach/jrsonnet/commit/0e1ae581969b0ab6489a867723470007f0b92472 as

Duologic commented 2 months ago

:wave: The last preview version on the release page has an issue with std.prune (some error about preserve_order) that is fixed on master, any plans on releasing v0.5.0 for real :wink: ?