You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/08/25 00:41:07 UTC

[GitHub] ccollins476ad commented on a change in pull request #202: Add new package type -> transient

ccollins476ad commented on a change in pull request #202: Add new package type -> transient
URL: https://github.com/apache/mynewt-newt/pull/202#discussion_r212781712
 
 

 ##########
 File path: newt/resolve/resolve.go
 ##########
 @@ -644,6 +653,18 @@ func ResolveFull(
 
 	res.MasterSet.Rpkgs = r.rpkgSlice()
 
+	// We have now resolved all packages so go through them and emit warning
+	// when using link packages
+	for _, rpkg := range res.MasterSet.Rpkgs {
+		if rpkg.Lpkg.Type() != pkg.PACKAGE_TYPE_TRANSIENT {
+			continue
+		}
+
+		log.Warnf("Transient package %s used, update configuration "+
+			"to use target package instead (%s)",
+			rpkg.Lpkg.FullName(), rpkg.Lpkg.LinkedName())
 
 Review comment:
   This warning might be confusing since "target" already means something else.  Maybe call it the "linked package" instead of "target package"?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services