Roger-luo / IonBase.jl

Base package for the IonCLI, one can extend the CLI for internal use using this package.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

some notes on supporting create command in standalone binaries

Roger-luo opened this issue · comments

  1. currently PkgTemplates uses Pkg.update which will later call stdlib to find path to stdlibs etc. this does not exists in standalone binaries. And I think most Pkg.update can be removed or replaced by more independent operation e.g sort the TOML file while writing it using sorted=true kwargs like what Pkg does.

  2. from Julia 1.6 Pkg supports julia_version kwargs for each command to set a certain Julia version to resolve, so we don't need to call Pkg from different julia versions anymore, but directly use the Pkg built into the binary can the version number we stored already in ion.toml.

  3. still need to figure out a way to pass some paths to Pkg like stdlibs.