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

Add upgrade to chef_certgen NIF Without an upgrade function, we see the following error report when #2

Closed
wants to merge 1 commit into from

Conversation

seth
Copy link
Contributor

@seth seth commented Mar 11, 2013

running the unit tests:

=ERROR REPORT==== 11-Mar-2013::10:22:45 ===
The on_load function for module chef_certgen returned
{error,
 {upgrade, "Upgrade not supported by this NIF library."}}

Adding upgrade that is identical to load resolves it

Without an upgrade function, we see the following error report when
running the unit tests:

=ERROR REPORT==== 11-Mar-2013::10:22:45 ===
The on_load function for module chef_certgen returned
{error,
 {upgrade, "Upgrade not supported by this NIF library."}}

Adding upgrade that is identical to load resolves it.
@kevsmith
Copy link
Contributor

Looks like something in the unit tests is triggering a double-load of the module. I don't see any harm in adding an empty upgrade callback to stop the error from happening. I spent some time looking at the unit tests and can't figure out what's causing chef_certgen to get loaded twice.

@seth seth closed this Mar 11, 2013
@seth
Copy link
Contributor Author

seth commented Mar 11, 2013

rebased and merged.

The error is only seen on OS X. But seems like a reasonable fix for now to make that go away. Tested that compile/test works on Linux still.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants