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

Habitat Artifact and Origin Key Header Update #425

Merged
merged 2 commits into from
Apr 22, 2016

Conversation

fnichol
Copy link
Collaborator

@fnichol fnichol commented Apr 22, 2016

Follows on to work in #424 and should be merged afterwards.

@thesentinels
Copy link
Contributor

By analyzing the blame information on this pull request, we identified @metadave and @reset to be potential reviewers

Note that this will invalidate all previously build artifacts.

This change adds a simple lexically sortable version string on the first
plaintext line of the artifact. It additionally adds a blank line
bewteen the header/prelude and the data binary stream. In other words
external tooling could opt to check for the first blank line or 2
newline characters as the delimiter.
@fnichol fnichol force-pushed the fnichol/hart-and-origin-headers branch from f9dd08f to 3c8e234 Compare April 22, 2016 19:27
@fnichol fnichol force-pushed the fnichol/hart-and-origin-headers branch from 3c8e234 to b1ec1c4 Compare April 22, 2016 19:54
debug!("Your key name = [{}]", your_key_name);
debug!("Your hash type = [{}]", your_hash_type);
debug!("Your signature = [{}]", your_signature_raw);

if your_format_version.trim() != HART_FORMAT_VERSION {
let msg = format!("Unsupported format version: {}. Supported format versions: [{}]",
Copy link
Contributor

Choose a reason for hiding this comment

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

nice touch :-)

@fnichol fnichol changed the title WIP - Habitat Artifact and Origin Key Header Update Habitat Artifact and Origin Key Header Update Apr 22, 2016
@bookshelfdave
Copy link
Contributor

gif-keyboard-14872845110194276395

@bookshelfdave bookshelfdave merged commit 2d3ca1b into master Apr 22, 2016
@bookshelfdave bookshelfdave deleted the fnichol/hart-and-origin-headers branch April 22, 2016 20:11
fnichol added a commit that referenced this pull request Apr 23, 2016
Due the changes in #425, the header portion of a Habitat Artifact has
grown from the first 3 lines to 5 lines, the last of which is an empty
line. In order for the "cheap" (i.e. dirty, evil, not recommended)
install method that `hab-bpm` currently uses to work, we need to start
reading the tar archive starting on line 6 now, not 4.

Hm, the commit message is far longer than the fix. Funny how that works.
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.

3 participants