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

niminst: generate archive manifest after build #219

Merged
merged 1 commit into from
Feb 2, 2022

Conversation

alaviss
Copy link
Contributor

@alaviss alaviss commented Jan 31, 2022

This allows tools to figure out what was created without doing guesswork
on file name.

This will be used by the continuous delivery pipeline.

@alaviss alaviss requested a review from saem January 31, 2022 16:14
@@ -769,6 +770,51 @@ proc checkedShellExec(cmd: string) =
if exitCode != 0:
raise newExternalProgramError(exitCode)

proc computeChecksum(file: string): string =
## Calculate the SHA256 hash for `file`.
let p = startProcess(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hah, I thought we'd have a standard library call for this, oh well.

Copy link
Collaborator

@saem saem left a comment

Choose a reason for hiding this comment

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

Minor, otherwise g2g

stderr.write p.outputStream.readAll()
raise newExternalProgramError(exitCode)
else:
# OpenSSL produce an output in this format:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# OpenSSL produce an output in this format:
# OpenSSL produces output in this format:

cpu: string ## The binary archive target CPU
of Source:
discard

proc archiveDist(c: var ConfigData) =
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
proc archiveDist(c: var ConfigData) =
proc createArchiveDist(c: var ConfigData) =

If we only day it a few times then it's not worth saving the characters and it completely obviates the comment.

This allows tools to figure out what was created without doing guesswork
on file name.

Co-authored-by: Saem Ghani <[email protected]>
@alaviss
Copy link
Contributor Author

alaviss commented Feb 2, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Feb 2, 2022

Build succeeded:

@bors bors bot merged commit 094ee88 into nim-works:devel Feb 2, 2022
@alaviss alaviss deleted the niminst-manifest branch February 9, 2022 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants