No reviewers
Labels
No Label
blocked
bug
build
documentation
duplicate
enhancement
finger
gemini
gopher
help wanted
http
in progress
invalid
local
needs-info
non-code
non-functional
non-urgent
question
release
rendering
suggestion
telnet
terminal
urgent
wontfix
No Milestone
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sloum/bombadillo#84
Loading…
Reference in New Issue
No description provided.
Delete Branch "support-different-go-versions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This adds some basic and general information about development, testing standard and linting standard.
The makefile has a new target to test against go1.11.13.
This is my intended resolution for #81 and also some additional coverage for #65.
@ -6,6 +6,7 @@ BINDIR := ${EXEC_PREFIX}/bin
DATAROOTDIR := ${PREFIX}/share
MANDIR := ${DATAROOTDIR}/man
MAN1DIR := ${MANDIR}/man1
test : GOCMD := go1.11.13
I have not seen this construct in a Makefile. I assume this scopes GOCMD to test?
Yes, for the target test, the GOCMD variable is set to go1.11.13. It is also still possible to override it from the command line if you really like.
@ -49,1 +50,4 @@
rm -f ${DESTDIR}${BINDIR}/${BINARY}
.PHONY: test
test: clean build
So test in this case does not run tests, it creates a build with the standardized version so that we can know that it will build on t hat version, yeah?
Yes, that's exactly right. It is also possible to expand it to include commands like
go test
.Cool. Looks good!
@ -128,0 +130,4 @@
Following the standard install instructions should lead you to have nearly everything you need to commence development. The only additions to this are:
- To be able to submit pull requests, you will need to fork this repository first.
- Bombadillo must be tested against Go 1.11 to ensure backward compatibility. This version can be installed as per the [Go install documentation](https://golang.org/doc/install#extra_versions). Tests for this version are run using 'make test'.
It seems as though
make test
does not actually run tests (at present at least), should we reword this for the time being to say that it will generate a test build with that version of the compiler?OK I'll make that clearer, thanks for the feedback.
I approve this pull. Just a couple'a comments/questions.