diff --git a/chef/lib/chef/knife/cookbook_upload.rb b/chef/lib/chef/knife/cookbook_upload.rb
index <HASH>..<HASH> 100644
--- a/chef/lib/chef/knife/cookbook_upload.rb
+++ b/chef/lib/chef/knife/cookbook_upload.rb
@@ -118,7 +118,10 @@ class Chef
         end
 
         ui.info "upload complete"
-        update_version_constraints(version_constraints_to_update) if config[:environment]
+
+        unless version_constraints_to_update.empty?
+          update_version_constraints(version_constraints_to_update) if config[:environment]
+        end
       end
 
       def cookbook_repo
CHEF-<I>: Only update the environment when necessary.