MYNEWT-655 newt - Detect newt version incompat. Correctly handle case where project imposes no newt version restrictions.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/934b3cc1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/934b3cc1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/934b3cc1 Branch: refs/heads/1_0_0_dev Commit: 934b3cc1ab0e533958e5cdf0bc133798e7f2dd6d Parents: 8ac563e Author: Christopher Collins <[email protected]> Authored: Tue Mar 7 14:03:48 2017 -0800 Committer: Marko Kiiskila <[email protected]> Committed: Tue Mar 7 16:00:23 2017 -0800 ---------------------------------------------------------------------- newt/project/project.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/934b3cc1/newt/project/project.go ---------------------------------------------------------------------- diff --git a/newt/project/project.go b/newt/project/project.go index 6778c8b..42015bb 100644 --- a/newt/project/project.go +++ b/newt/project/project.go @@ -443,7 +443,7 @@ func (proj *Project) checkNewtVer() error { compatSms := proj.v.GetStringMapString("project.newt_compatibility") // If this project doesn't have a newt compatibility map, just assume there // is no incompatibility. - if compatSms == nil { + if len(compatSms) == 0 { return nil }
