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

mongodb-tools: 3.0.12 -> 3.5.13 #29884

Merged
merged 2 commits into from Sep 28, 2017
Merged

mongodb-tools: 3.0.12 -> 3.5.13 #29884

merged 2 commits into from Sep 28, 2017

Conversation

evelant
Copy link
Contributor

@evelant evelant commented Sep 28, 2017

Motivation for this change

Need to connect to newer mongodb databases with SSL

I could use a little help with this upgrade as I am new to NixOS. Despite the build output saying all of the tools were compiled with SSL they behave as if they were compiled without ssl (--ssl option is not there).

Also the build somehow contains a reference to go, so I added allowGoReference but I know that is not the correct solution.

Thanks in advance for any help.

@Mic92 Mic92 changed the title Upgrade mongodb-tools to 3.5.13 with ssl mongodb-tools: 3.0.12 -> 3.5.13 Sep 28, 2017
buildPhase = ''
runHook preBuild
${stdenv.lib.concatMapStrings (t: ''
go build -o "$bin/bin/${t}" -tags ssl -ldflags "-s -w" $goPackagePath/${t}/main
Copy link
Member

Choose a reason for hiding this comment

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

Go binaries where not stripped correctly.

Copy link
Contributor

Choose a reason for hiding this comment

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

AFAIK Go packages do not refer to the Go compiler even with symbols and debug info. I have just built this package without -ldflags "-s -w".

Copy link
Member

Choose a reason for hiding this comment

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

It definitely was referring to go before that commit. I saw it with strings. I don't where this was coming from. Nevertheless stripping binaries does not hurt as it results in smaller binaries.

@Mic92
Copy link
Member

Mic92 commented Sep 28, 2017

Notice that we have a naming convention for package upgrades like that:

mongodb-tools: 3.0.12 -> 3.5.13

@Mic92 Mic92 merged commit b46b046 into NixOS:master Sep 28, 2017
globin pushed a commit that referenced this pull request Sep 28, 2017
* Upgrade mongodb-tools to 3.5.13 with ssl

* mongodb-tools: fix go references

(cherry picked from commit b46b046)
@orivej orivej mentioned this pull request Sep 29, 2017
7 tasks
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.

None yet

3 participants