Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bmeneg
Copy link
Collaborator

@bmeneg bmeneg commented May 20, 2021

This merge request fixes #680 by re-organizing the cmd/util_* files for specific GOOS.
Darwin and *BSD (mostly FreeBSD) share some ground when it comes to kernel API, with that, a good starting point is to add both families in the same file, suffixed by _bsd.
I know it doesn't hold true for every syscall, but for what we need in lab it's good enough.

bmeneg added 2 commits May 20, 2021 13:29
Update file names based on their GOOS, allowing the removal of the
explicit build constraint, `// +build`, calls. Additionally, this patch
rename the _darwin specific file to _bsd, to allow future addition of BSD
systems.

Signed-off-by: Bruno Meneguele <[email protected]>
Even though we don't directly support BSD systems, it doesn't mean we can't
help them to build `lab` if the work is pretty small. This patch adds the
three officialy supported BSD OSes by golang to the cmd/util_bsd file, since
they are pretty close to what we need in lab from darwin (or the other way
around? :).

Signed-off-by: Bruno Meneguele <[email protected]>
@codecov
Copy link

codecov bot commented May 20, 2021

Codecov Report

Merging #682 (f63883f) into master (c4132a9) will increase coverage by 0.25%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #682      +/-   ##
==========================================
+ Coverage   54.25%   54.51%   +0.25%     
==========================================
  Files          79       79              
  Lines        4921     4905      -16     
==========================================
+ Hits         2670     2674       +4     
+ Misses       1994     1975      -19     
+ Partials      257      256       -1     
Impacted Files Coverage Δ
cmd/completion.go 11.11% <ø> (ø)
cmd/todo_list.go 10.38% <0.00%> (+1.78%) ⬆️
cmd/util_linux.go 0.00% <ø> (ø)
cmd/fork.go 61.97% <0.00%> (+5.63%) ⬆️

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 f1a6b7d...f63883f. Read the comment docs.

@bmeneg
Copy link
Collaborator Author

bmeneg commented May 20, 2021

Test done by the issue reporter.

@bmeneg bmeneg merged commit df276a8 into zaquestion:master May 20, 2021
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.

v0.21.0 fails to build on FreeBSD

1 participant