Skip to content

Commit

Permalink
Fixes test
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgomez committed Jan 17, 2025
1 parent e9d55c5 commit 9428ff0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/nimble.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1906,7 +1906,9 @@ proc lock(options: Options) =
var
baseDeps =
if options.useSATSolver:
processFreeDependenciesSAT(pkgInfo, options, fromLock = true).toSeq
#only if we are actually locking (not upgrading)
let fromLock = options.action.typ == actionLock
processFreeDependenciesSAT(pkgInfo, options, fromLock).toSeq
else:
pkgInfo.getDependenciesForLocking(options) # Deps shared by base and tasks

Expand Down
4 changes: 2 additions & 2 deletions tests/tlockfile.nim
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ license = "MIT"
requires "nim >= 1.5.1"
"""
additionalFileContent = "proc foo() =\n echo \"foo\"\n"
alternativeAdditionalFileContent = "proc bar() =\n echo \"bar\"\n"
# alternativeAdditionalFileContent = "proc bar() =\n echo \"bar\"\n"

definePackageConstants(PkgIdent.main)
definePackageConstants(PkgIdent.dep1)
Expand Down Expand Up @@ -235,7 +235,7 @@ requires "nim >= 1.5.1"
result = lockFileName.readFile.parseJson{$lfjkPackages}{dep}{$lfjkPkgVcsRevision}.str

proc addAdditionalFileAndPushToRemote(
repoPath, remoteName, remotePath, fileContent: string) =
repoPath, remoteName, remotePath, fileContent: string) {.used.} =
cdNewDir remotePath:
initRepo(isBare = true)
cd repoPath:
Expand Down

0 comments on commit 9428ff0

Please sign in to comment.