Jira (PUP-10390) Ruby file gets loaded twice

2020-04-27 Thread Claire Cadman (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Claire Cadman updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10390  
 
 
  Ruby file gets loaded twice   
 

  
 
 
 
 

 
Change By: 
 Claire Cadman  
 
 
Labels: 
 doc_reviewed  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.351365.1585299458000.47520.1587984720038%40Atlassian.JIRA.


Jira (PUP-10390) Ruby file gets loaded twice

2020-04-23 Thread Gabriel Nagy (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Gabriel Nagy updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10390  
 
 
  Ruby file gets loaded twice   
 

  
 
 
 
 

 
Change By: 
 Gabriel Nagy  
 
 
Fix Version/s: 
 PUP 6.15.0  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.351365.1585299458000.45253.1587644160032%40Atlassian.JIRA.


Jira (PUP-10390) Ruby file gets loaded twice

2020-04-02 Thread Luchian Nemes (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Luchian Nemes assigned an issue to Luchian Nemes  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10390  
 
 
  Ruby file gets loaded twice   
 

  
 
 
 
 

 
Change By: 
 Luchian Nemes  
 
 
Assignee: 
 Luchian Nemes  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.351365.1585299458000.29233.1585846980580%40Atlassian.JIRA.


Jira (PUP-10390) Ruby file gets loaded twice

2020-04-01 Thread Mihai Buzgau (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mihai Buzgau updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10390  
 
 
  Ruby file gets loaded twice   
 

  
 
 
 
 

 
Change By: 
 Mihai Buzgau  
 
 
Story Points: 
 3  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.351365.1585299458000.27278.1585731900028%40Atlassian.JIRA.


Jira (PUP-10390) Ruby file gets loaded twice

2020-04-01 Thread Mihai Buzgau (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mihai Buzgau commented on  PUP-10390  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Ruby file gets loaded twice   
 

  
 
 
 
 

 
 related: https://tickets.puppetlabs.com/browse/PUP-9794  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.351365.1585299458000.27273.1585731720028%40Atlassian.JIRA.


Jira (PUP-10390) Ruby file gets loaded twice

2020-03-31 Thread Mihai Buzgau (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mihai Buzgau updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10390  
 
 
  Ruby file gets loaded twice   
 

  
 
 
 
 

 
Change By: 
 Mihai Buzgau  
 
 
Sprint: 
 PR NW  -  Triage  2020-04-15  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.351365.1585299458000.25666.1585666560134%40Atlassian.JIRA.


Jira (PUP-10390) Ruby file gets loaded twice

2020-03-27 Thread Luchian Nemes (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Luchian Nemes updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10390  
 
 
  Ruby file gets loaded twice   
 

  
 
 
 
 

 
Change By: 
 Luchian Nemes  
 

  
 
 
 
 

 
 The [provider/package/gem.rb|https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/gem.rb] file gets loaded twice. This prevents us from having constant variables without getting the following warnings at each run:*/Users/luchi/repos/puppet/lib/puppet/provider/package/gem.rb:21: warning: already initialized constant MY_CONSTANT_VARIABLE**/Users/luchi/repos/puppet/lib/puppet/provider/package/gem.rb:21: warning: previous definition of MY_CONSTANT_VARIABLE was here*This happens due to the require done in [provider/package/puppet_gem.rb|https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/puppet_gem.rb] and then loaded again in [util/autoload.rb|https://github.com/puppetlabs/puppet/blob/master/lib/puppet/util/autoload.rb]. This can be seen by putting a 'puts(caller)' in [provider/package/gem.rb|https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/gem.rb]. After fixing the issue, a refactoring should be done in [provider/package/gem.rb|https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/gem.rb] to use (for better code readability):|GEM_VERSION = Puppet::Util::Package::Version::Gem||GEM_VERSION_RANGE = Puppet::Util::Package::Version::Range|  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 
 

Jira (PUP-10390) Ruby file gets loaded twice

2020-03-27 Thread Luchian Nemes (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Luchian Nemes created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10390  
 
 
  Ruby file gets loaded twice   
 

  
 
 
 
 

 
Issue Type: 
  Improvement  
 
 
Assignee: 
 Unassigned  
 
 
Created: 
 2020/03/27 1:57 AM  
 
 
Priority: 
  Low  
 
 
Reporter: 
 Luchian Nemes  
 

  
 
 
 
 

 
 The provider/package/gem.rb file gets loaded twice. This prevents us from having constant variables without getting the following warnings at each run: /Users/luchi/repos/puppet/lib/puppet/provider/package/gem.rb:21: warning: already initialized constant MY_CONSTANT_VARIABLE /Users/luchi/repos/puppet/lib/puppet/provider/package/gem.rb:21: warning: previous definition of MY_CONSTANT_VARIABLE was here This happens due to the require done in provider/package/puppet_gem.rb and then loaded again in util/autoload.rb. This can be seen by putting a 'puts(caller)' in provider/package/gem.rb.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment