Three weeks after the RC1 release, it is time for our second release candidate: Nim 1.6.0 RC2.
You can download it from our nightly builds:
If you use choosenim, this should be available with choosenim #version-1-6.
Because of the feedback we got for RC1, until we find a proper solution for the raised problems with new Nimble version, we decided to revert the Nimble version we ship Nim with. Sorry for the inconvenience to those who have used RC1 and new Nimble.
Compared to RC1, RC2 brings 27 new commits containing bugfixes and improvements.
If there are any regressions (compared to version 1.4), please let us know.
I tried updating via choosenim but it fails due to a invalid option when building koch:
[exelotl@ringo ~]$ choosenim \#version-1-6
Downloading Nim version-1-6 from GitHub
[##################################################] 100.0% 0kb/s
Extracting version-1-6.tar.gz
Building Nim #version-1-6
Warning: Building from latest C sources. They may not be compatible with the Nim version you have chosen to install.
Downloading Nim C sources from GitHub
[##################################################] 100.0% 0kb/s
Extracting 64e34778fa7e114b4afc753c7845dee250584167.tar.gz
Building C sources
Building koch
Exception: Execution failed with exit code 1
... Command: ./bin/nim c koch
... Output: /home/exelotl/.choosenim/toolchains/nim-#version-1-6/config/nim.cfg(16, 1) Error: invalid command line option: '--hint'
Cleaning failed build
Tip: 9 messages have been suppressed, use --verbose to show them.
Error: Build failed
same issue on Windows.
Extracting 64e34778fa7e114b4afc753c7845dee250584167.tar.gz
Building C sources
Building koch
Exception: Execution failed with exit code 1
... Command: bin/nim.exe c koch
... Output: C:\Users\user\.choosenim\toolchains\nim-#version-1-6\config\nim.cfg(16, 1) Error: invalid command line option: '--hint'
Cleaning failed build
Tip: 1 messages have been suppressed, use --verbose to show them.
Error: Build failed
Btw false malware detections are still a problem. I downloaded the nightly and Windows Defender considers finish.exe to be malware.
Here is the Virustotal: https://www.virustotal.com/gui/file/ca97733b692dedee51045163ef37350a8e5cf481f5bcdb85a33cf77d05ef2153/detection
Is it about time we try and do something about this?
Is it about time we try and do something about this?
Like what?
You can do code signing for Windows. Not sure if you already do this or not. There's an electronjs page about it: https://www.electronjs.org/docs/tutorial/code-signing#signing-windows-builds
The windows version requires you to purchase a digital certificate. Apparently code signing helps but still requires some amount of downloads/verification for the cert to gain trust: https://www.beholdgenealogy.com/blog/?p=3823
Nice! Signing infrastructure seems to be a pain afaict. Google just announced an "Secure Open Source" project.
One effort they're funding is setting up signing infra for open source projects. There's some metrics for qualifying projects but I'd think Nim would have a chance to qualify? I'll try and run their metrics script later. Not sure if it'd help but maybe pay for contracting hours for someone to help setup a code signing system?
Yah, code signing is a pain, but hopefully it could help new compiler binaries "inherit" a good reputation. Reminds me of American "credit scores " where no score is worse than a bad score, which is annoying.
$ criticality_score --repo github.com/nim-lang/Nim
name: Nim
url: https://github.com/nim-lang/Nim
language: Nim
created_since: 162
updated_since: 0
contributor_count: 739
org_count: 1
commit_frequency: 35.3
recent_releases_count: 3
updated_issues_count: 824
closed_issues_count: 551
comment_frequency: 1.7
dependents_count: 1595
criticality_score: 0.68444
Failed to build
Nimble is broken now also. ~$ choosenim #version-1-6 Downloading Nim version-1-6 from GitHub
I am on Windows
Info: C:\Users\Admin\.choosenim\downloads\dlls.zip already downloaded
Extracting dlls.zip
Downloading Nim version-1-6 from GitHub
[##################################################] 100.0% 0kb/s
Extracting version-1-6.tar.gz
Error: Unable to extract. Error was 'Execution failed with exit code 1
... Command: tar xf C:\Users\Admin\.choosenim\downloads\version-1-6.tar.gz -C C:\Users\Admin\AppData\Local\Temp\choosenim-extraction
... Output: Nim-version-1-6/bin/nim-gdb.bash: Can't create '\\\\?\\C:\\Users\\Admin\\AppData\\Local\\Temp\\choosenim-extraction\\Nim-version-1-6\\bin\\nim-gdb.bash'
... tar: Error exit delayed from previous errors.
... '.
rm -vfr ~/.nimble/*
removed '/home/nixfreak/.nimble/bin/nimpretty' removed '/home/nixfreak/.nimble/bin/nimgrep' removed '/home/nixfreak/.nimble/bin/choosenim' removed '/home/nixfreak/.nimble/bin/nim-gdb' removed '/home/nixfreak/.nimble/bin/nimsuggest' removed '/home/nixfreak/.nimble/bin/choosenim_0.7.4' removed '/home/nixfreak/.nimble/bin/testament' removed '/home/nixfreak/.nimble/bin/nim' removed '/home/nixfreak/.nimble/bin/nimble' removed directory '/home/nixfreak/.nimble/bin' removed '/home/nixfreak/.nimble/packages_official.json' removed '/home/nixfreak/.nimble/packages_temp.json' removed directory '/home/nixfreak/.nimble/pkgs' nixfreak@cha0s-Bodhi:~$ choosenim #version-1-6 bash: /home/nixfreak/.nimble/bin/choosenim: No such file or directory nixfreak@cha0s-Bodhi:~$ wget -qO - https://nim-lang.org/choosenim/init.sh | sh
choosenim-init: ChooseNim installed in /home/nixfreak/.nimble/bin choosenim-init: You must now ensure that the Nimble bin dir is in your PATH. choosenim-init: Place the following line in the ~/.profile or ~/.bashrc file. choosenim-init: export PATH=/home/nixfreak/.nimble/bin:$PATH nixfreak@cha0s-Bodhi:~$ choosenim #version-1-6 Downloading Nim version-1-6 from GitHub
Also with latest devel, using Nimble, installing twice the same package raise an error :
oserr.nim(95) raiseOSError
Error: unhandled exception: File exists
Additional info: ("../pkgs/nimlsp-0.3.2/nimlsp", "/home/rcaillaud/.nimble/bin/nimlsp") [OSError]
I don't think it should be an error