Package Details: openai-cli 0.3.7-1

Git Clone URL: https://aur.archlinux.org/openai-cli.git (read-only, click to copy)
Package Base: openai-cli
Description: CLI for the GPT model written in Rust
Upstream URL: https://github.com/LevitatingBusinessMan/openai-cli
Licenses: MIT
Submitter: Levitating
Maintainer: Levitating
Last Packager: Levitating
Votes: 1
Popularity: 0.000428
First Submitted: 2023-03-22 10:34 (UTC)
Last Updated: 2023-12-06 02:36 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

dreieck commented on 2023-03-24 17:27 (UTC)

Ahoj,

Regarding the name, I don't think I can change the name of this package now.

You can, it is documented in the Arch Wiki.
It works as follows: Upload the new-named package and submit a merge request on the old-named package.

I added git to the dependencies.

I don't see it yet.

The crate should be build using the nightly toolchain. That's the source of the error. I will update documentation and this package appropriately.

Thanks for fixing this in the PKGBUILD!

Thanks for maintaining,
regards!

Levitating commented on 2023-03-24 16:16 (UTC) (edited on 2023-03-24 16:17 (UTC) by Levitating)

Hey @dreieck.

The crate should be build using the nightly toolchain. That's the source of the error. I will update documentation and this package appropriately.

I added git to the dependencies.

I moved the fetching of the dependencies to the prepare function. This should allow the build function to run without internet.

I will look into setting CARGO_HOME to keep the home clean.

Regarding the name, I don't think I can change the name of this package now. But in the feature I will serve compiled binaries on the github releases which this package could use instead.

dreieck commented on 2023-03-24 15:21 (UTC)

Just a note:

When compiling the package, I get the following error:

   Compiling reedline v0.17.0
   Compiling openai-cli v0.1.0 (/tmp/makepkg/build/openai-cli/src/openai-cli)
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> src/main.rs:1:12
  |
1 | #![feature(str_split_remainder)]
  |            ^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0554`.
error: could not compile `openai-cli` due to previous error

I have reported this ↗ upstream.

Regards!

dreieck commented on 2023-03-24 14:55 (UTC) (edited on 2023-03-24 15:06 (UTC) by dreieck)

Ahoj,

  1. git needs to be added to makedepends,
  2. you must rename your package to openai-cli-git because you use the latest version from git. (And proper provides- and conflicts-entries need to be added then.)
  3. helpuful: Can you move the rust crates download step from build() to prepare(), so that during build() no internet access is required?
    Also, can you make sure that all the stuff is downloaded within $srcdir, so that the filesystem/ home directory stays clean? (Using $CARGO_HOME.)

Thanks for maintaining,
regards!