Skip to content
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 progress reporting to time-consuming compilation step, NOP functionality difference #8

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

psranga
Copy link

@psranga psranga commented Sep 18, 2024

added progress reporting to time-consuming compilation step, NOP functionality difference.

  1. Emits a new progress message before starting sqlite compilation.

  2. Clarifies existing download progress message: that a source release
    is being downloaded, and shows the download dir.

Motivation: It wasn't obvious from the original message that installing
sqlite3 with this plugin would take more than a few seconds. Compiling
sqlite takes approx two minutes or so on my computer, so the new message
is hopefully reassuring.

After

$ asdf plugin remove sqlite
$ asdf plugin add sqlite https://github.com/psranga/asdf-sqlite.git
$ time asdf install sqlite latest
downloading sqlite source code; url=https://www.sqlite.org/2024/sqlite-autoconf-3460100.tar.gz; destDir=/home/ubuntu/.asdf/downloads/sqlite/3.46.1
configure && compile && make install: this might take a minute; buildDir=/home/ubuntu/.asdf/downloads/sqlite/3.46.1; installDir=/home/ubuntu/.asdf/installs/sqlite/3.46.1

real    1m48.542s
user    2m36.780s
sys     0m5.426s
$ which sqlite3
/home/ubuntu/.asdf/shims/sqlite3

Before

$ asdf plugin add sqlite https://github.com/cLupus/asdf-sqlite.git
$ time asdf install sqlite latest
Downloading sqlite from https://www.sqlite.org/2024/sqlite-autoconf-3460100.tar.gz

real    1m42.141s
user    2m31.023s
sys     0m5.254s
$ which sqlite3
/home/ubuntu/.asdf/shims/sqlite3

…tionality difference.

1. Emits a new progress message before starting sqlite compilation.

2. Clarifies existing download progress message: that a source release
   is being downloaded, and shows the download dir.

Motivation: It wasn't obvious from the original message that installing
sqlite3 with this plugin would take more than a few seconds.  Compiling
sqlite takes approx two minutes or so on my computer, so the new message
is hopefully reassuring.

After
-----

```bash
$ asdf plugin remove sqlite
$ asdf plugin add sqlite https://github.com/psranga/asdf-sqlite.git
$ time asdf install sqlite latest
downloading sqlite source code; url=https://www.sqlite.org/2024/sqlite-autoconf-3460100.tar.gz; destDir=/home/ubuntu/.asdf/downloads/sqlite/3.46.1
configure && compile && make install: this might take a minute; buildDir=/home/ubuntu/.asdf/downloads/sqlite/3.46.1; installDir=/home/ubuntu/.asdf/installs/sqlite/3.46.1

real    1m48.542s
user    2m36.780s
sys     0m5.426s
$ which sqlite3
/home/ubuntu/.asdf/shims/sqlite3
```

Before
------

```bash
$ asdf plugin add sqlite https://github.com/cLupus/asdf-sqlite.git
$ time asdf install sqlite latest
Downloading sqlite from https://www.sqlite.org/2024/sqlite-autoconf-3460100.tar.gz

real    1m42.141s
user    2m31.023s
sys     0m5.254s
$ which sqlite3
/home/ubuntu/.asdf/shims/sqlite3
```
Copy link
Owner

@cLupus cLupus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, it looks good

@cLupus cLupus merged commit 3d61aa0 into cLupus:main Sep 19, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants