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

lock: write lock file with final newline #1057

Merged
merged 2 commits into from
Jan 31, 2023

Conversation

ee7
Copy link
Contributor

@ee7 ee7 commented Jan 5, 2023

Before this commit, nimble lock wrote the lock file without a final newline:

$ nimble lock
     Info:  Generating the lock file...
  Verifying dependencies for [email protected]
  Success:  The lock file is generated.
$ cat nimble.lock
{
  "version": 1,
  "packages": {}
$ wc -l nimble.lock
3 nimble.lock

Fixes: #1056

Before this commit, `nimble lock` wrote the lock file without a final
newline:

    $ nimble lock
         Info:  Generating the lock file...
      Verifying dependencies for [email protected]
      Success:  The lock file is generated.
    $ cat nimble.lock
    {
      "version": 1,
      "packages": {}
    $ wc -l nimble.lock
    3 nimble.lock

Fixes: nim-lang#1056
@ee7 ee7 marked this pull request as ready for review January 5, 2023 13:06
@ee7 ee7 force-pushed the lockfile-write-with-final-newline branch from 46de920 to 1b66c1b Compare January 5, 2023 13:08
@ee7 ee7 changed the title lockfile: write lock file with final newline lock: write lock file with final newline Jan 5, 2023
src/nimblepkg/lockfile.nim Outdated Show resolved Hide resolved
@Araq Araq closed this Jan 8, 2023
@Araq Araq reopened this Jan 8, 2023
@Araq Araq merged commit c701d6e into nim-lang:master Jan 31, 2023
@ee7 ee7 deleted the lockfile-write-with-final-newline branch February 1, 2023 13:16
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.

lock: creates lock file without final newline
3 participants