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

.gitignore, config, nimble: use lock file #418

Merged
merged 6 commits into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@
# Ignore temporary repos
tests/.test_elixir_track_repo/
tests/.test_nim_track_repo/

# Ignore user-specific Nimble files
nimble.develop
nimble.paths
8 changes: 8 additions & 0 deletions config.nims
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,11 @@ if defined(release):
elif defined(clang):
switch("clang.exe", "musl-clang")
switch("clang.linkerexe", "musl-clang")

# Tell Nim the paths to Nimble packages. We need this because we ran `nimble lock`.
# The below lines are added by `nimble setup`.
# begin Nimble config (version 2)
--noNimblePath
when withDir(thisDir(), system.fileExists("nimble.paths")):
include "nimble.paths"
# end Nimble config
8 changes: 5 additions & 3 deletions configlet.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ bin = @["configlet"]

# Dependencies
requires "nim >= 2.0.0"
requires "jsony#ea811bec7fa50f5abd3088ba94cda74285e93f18" # 1.1.5 (2023-02-09)
requires "parsetoml#6e5e16179fa2db60f2f37d8b1af4128aaa9c8aaf" # 0.7.1 (2023-08-06)
requires "supersnappy#e4df8cb5468dd96fc5a4764028e20c8a3942f16a" # 2.1.3 (2022-06-12)
requires "jsony"
requires "parsetoml"
requires "supersnappy"

task test, "Runs the test suite":
if not fileExists("nimble.paths"):
exec "nimble setup"
exec "nim r ./tests/all_tests.nim"
36 changes: 36 additions & 0 deletions nimble.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"version": 2,
"packages": {
"supersnappy": {
"version": "2.1.3",
"vcsRevision": "e4df8cb5468dd96fc5a4764028e20c8a3942f16a",
"url": "https://github.com/guzba/supersnappy",
"downloadMethod": "git",
"dependencies": [],
"checksums": {
"sha1": "36a05ee6befe3764ed8e2a6fb5d0882c2fd090f8"
}
},
"jsony": {
"version": "1.1.5",
"vcsRevision": "ea811bec7fa50f5abd3088ba94cda74285e93f18",
"url": "https://github.com/treeform/jsony",
"downloadMethod": "git",
"dependencies": [],
"checksums": {
"sha1": "6aeb83e7481ca8686396a568096054bc668294df"
}
},
"parsetoml": {
"version": "0.7.1",
"vcsRevision": "6e5e16179fa2db60f2f37d8b1af4128aaa9c8aaf",
"url": "https://github.com/NimParsers/parsetoml.git",
"downloadMethod": "git",
"dependencies": [],
"checksums": {
"sha1": "586fe63467a674008c4445ed1b8ac882177d7103"
}
}
},
"tasks": {}
}