<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15954</bug_id>
          
          <creation_ts>2025-08-14 13:35:43 +0000</creation_ts>
          <short_desc>`do_compile[network] = &quot;1&quot;` does not forward PROXY environment variables</short_desc>
          <delta_ts>2025-08-14 14:53:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alex Merkle">Alexander.Merkle</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>JPEWhacker</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>102595</commentid>
    <comment_count>0</comment_count>
    <who name="Alex Merkle">Alexander.Merkle</who>
    <bug_when>2025-08-14 13:35:43 +0000</bug_when>
    <thetext>Hi,
while working with a bitbake/yocto based project I noticed a build fail while the `do_compile` phase of a `go` based project. According to my observation the `go.bbclass` sets `do_compile[network] = &quot;1&quot;` as go downloads the pkgs while the compile step. This works fine if NO corporate proxy is in place.

I noticed that the proxy environment variables
  http_proxy/https_proxy/no_proxy (as well as the uppercase variants)
were not part of the environment of the compile phase. Thus it fails to downloads the go pkgs.

I handed in a patch
  https://lists.openembedded.org/g/bitbake-devel/message/17809
that uses the existing `export_proxies` routine to forward the proxy related variables (among others https://git.yoctoproject.org/poky/tree/bitbake/lib/bb/fetch2/__init__.py#n873)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102601</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2025-08-14 14:49:20 +0000</bug_when>
    <thetext>The proxies being set is a property of the do_fetch task, not the network flag. We don&apos;t really want to associate the proxy support to the network flag. However, correct fix should be pretty simple: add a prefunc to your do_compile task that explicitly calls  bb.utils.export_proxies(d)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>