Skip to content

Conversation

azzlack
Copy link
Contributor

@azzlack azzlack commented Jun 8, 2022

When specifying the NUGET_PACKAGES environment variable on Linux, the search pattern does not work because it then looks the following:

  • $NUGET_PACKAGES/packages/Mongo2Go*/*/tools/mongodb-linux*/bin
  • $NUGET_PACKAGES/packages/mongo2go/*/*/tools/mongodb-linux*/bin
  • $NUGET_PACKAGES/mongo2go/*/*/tools/mongodb-linux*/bin

This is 1 * too many.

Also fixed error message if no binaries are found to include all search patterns.

Summary:
When specifying the NUGET_PACKAGES environment variable on Linux, the search pattern does not work because it then looks the following:

* `$NUGET_PACKAGES/packages/Mongo2Go*/*/tools/mongodb-linux*/bin`
* `$NUGET_PACKAGES/packages/mongo2go/*/*/tools/mongodb-linux*/bin`
* `$NUGET_PACKAGES/mongo2go/*/*/tools/mongodb-linux*/bin`

This is 1 `*` too many.

Also fixed error message if no binaries are found to include all search patterns.
@azzlack
Copy link
Contributor Author

azzlack commented Jun 8, 2022

EDIT: Just found this issue #134 where the same solution is proposed, but there is no PR

@jdafont
Copy link

jdafont commented Jul 1, 2022

Author of #134 references a branch with the same solution here https://github.com/techgeek03/Mongo2Go/tree/bugfix/linux-paths

Would love to see one of these solutions make it in. Mongo2Go is a fantastic project, but currently we are unable to use it in Azure DevOps, so testing is restricted to running it locally only.

@JohannesHoppe
Copy link
Member

JohannesHoppe commented Nov 19, 2024

LGTM, let's see if it works! Many thanks! ❤️

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