Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Add support for multiple GOPATHs #158

Merged
merged 3 commits into from
Feb 17, 2019
Merged

Add support for multiple GOPATHs #158

merged 3 commits into from
Feb 17, 2019

Conversation

0xd3e
Copy link
Contributor

@0xd3e 0xd3e commented Feb 16, 2019

This adds support for multiple entries in the GOPATH variable, which has the benefit that downloaded packages are placed in the path of the first entry of GOPATH while own packages can be managed in the second path.

Description

I replaced [ -n $GOPATH ] by [ (count $GOPATH) -gt 0 ] in functions/__sf_section_golang.fish.

Motivation and Context

Closes #157

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

  • I have tested using MacOS
  • I have tested using Linux

I ran npm test.

1..204
# tests 204
# pass  204

# ok

Checklist:

  • I have checked that no other PR duplicates mine
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.

Daniel Trautmann and others added 3 commits February 16, 2019 21:38
This adds support for multiple entries in the GOPATH variable, which has the benefit that downloaded packages are placed in the path the first entry of GOPATH while own packages can be managed in the second path.
Copy link
Owner

@matchai matchai left a comment

Choose a reason for hiding this comment

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

Looks good to me!
Thank you for the contribution @DanielTrautmann! 😄

@matchai matchai merged commit 653f1c8 into matchai:master Feb 17, 2019
matchai pushed a commit that referenced this pull request Feb 17, 2019
## [2.2.4](v2.2.3...v2.2.4) (2019-02-17)

### Bug Fixes

* don't throw errors when there are multiple GOPATHs ([#158](#158)) ([653f1c8](653f1c8))
@matchai
Copy link
Owner

matchai commented Feb 17, 2019

🎉 This PR is included in version 2.2.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@matchai
Copy link
Owner

matchai commented Mar 2, 2019

@all-contributors please add @DanielTrautmann for code

@allcontributors
Copy link
Contributor

@matchai

I've put up a pull request to add @DanielTrautmann! 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(Go) unexpected argument at index 2 with two items in GOPATH
2 participants