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

go: support projects with multiple binaries when using go.mod #3007

Merged
merged 1 commit into from Apr 2, 2020

Conversation

cjp256
Copy link
Contributor

@cjp256 cjp256 commented Apr 1, 2020

There was a check to assert only one binary was built.

  • Remove the error check. If no binaries are found, warn.

  • Update logic to handle relinking multiple binaries.

  • Update multiple main spread test to also build with go.mod.

Signed-off-by: Chris Patterson chris.patterson@canonical.com

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run ./runtests.sh static?
  • Have you successfully run ./runtests.sh tests/unit?

There was a check to assert only one binary was built.

- Remove the error check. If no binaries are found, warn.

- Update logic to handle relinking multiple binaries.

- Update multiple main spread test to also build with go.mod.

Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
@codecov-io
Copy link

Codecov Report

Merging #3007 into master will increase coverage by 0.00%.
The diff coverage is 66.66%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3007   +/-   ##
=======================================
  Coverage   88.30%   88.30%           
=======================================
  Files         232      232           
  Lines       16576    16577    +1     
  Branches     2555     2556    +1     
=======================================
+ Hits        14638    14639    +1     
  Misses       1401     1401           
  Partials      537      537           
Impacted Files Coverage Δ
snapcraft/plugins/v1/go.py 91.80% <66.66%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d976a89...c41fe55. Read the comment docs.

@sergiusens
Copy link
Collaborator

Store timeouts are unrelated

@sergiusens sergiusens merged commit b7284c1 into master Apr 2, 2020
@sergiusens sergiusens deleted the fix-go branch April 2, 2020 19:39
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