packer: fix unpinned resource fetching
packer: fix unpinned resource fetching

Upstream ref: https://github.com/mitchellh/packer/issues/3094

Closes #48293.

Closes #48393.

Signed-off-by: Dominyk Tiller <53e438f55903875d07efdd98a8aaf887e7208dd3@gmail.com>

bukzor/linuxbrew,dericed/homebrew,elyscape/homebrew,scpeters/homebrew,kevinastone/homebrew,Homebrew/linuxbrew,liamstask/homebrew,jamer/homebrew,ebouaziz/linuxbrew,hakamadare/homebrew,totalvoidness/homebrew,cosmo0920/homebrew,iostat/homebrew2,gicmo/homebrew,bukzor/linuxbrew,MoSal/homebrew,ExtremeMan/homebrew,Linuxbrew/linuxbrew,georgschoelly/homebrew,eighthave/homebrew,totalvoidness/homebrew,saketkc/linuxbrew,SteveClement/homebrew,polishgeeks/homebrew,SteveClement/homebrew,kodabb/homebrew,elgertam/homebrew,mobileoverlord/homebrew-1,nandub/homebrew,Angeldude/linuxbrew,dalanmiller/homebrew,dplarson/homebrew,SteveClement/homebrew,DoomHammer/linuxbrew,galaxy001/homebrew,elyscape/homebrew,getgauge/homebrew,ablyler/homebrew,influxdb/homebrew,yumitsu/homebrew,reelsense/homebrew,esamson/homebrew,saketkc/linuxbrew,keith/homebrew,ralic/homebrew,gicmo/homebrew,filcab/homebrew,OJFord/homebrew,slyphon/homebrew,ybott/homebrew,tschoonj/homebrew,jsjohnst/homebrew,cprecioso/homebrew,bigbes/homebrew,elgertam/homebrew,keith/homebrew,retrography/homebrew,decors/homebrew,reelsense/linuxbrew,recruit-tech/homebrew,Angeldude/linuxbrew,drewwells/homebrew,polishgeeks/homebrew,lrascao/homebrew,frodeaa/homebrew,gnubila-france/linuxbrew,Asuranceturix/homebrew,muellermartin/homebrew,gnubila-france/linuxbrew,skinny-framework/homebrew,3van/homebrew,pcottle/homebrew,gicmo/homebrew,thinker0/homebrew,ebouaziz/linuxbrew,ablyler/homebrew,frodeaa/homebrew,gawbul/homebrew,skatsuta/homebrew,dunn/homebrew,Linuxbrew/linuxbrew,reelsense/homebrew,Angeldude/linuxbrew,OJFord/homebrew,Homebrew/linuxbrew,Homebrew/linuxbrew,mkrapp/homebrew,base10/homebrew,cscetbon/homebrew,muellermartin/homebrew,drbenmorgan/linuxbrew,marcwebbie/homebrew,MoSal/homebrew,getgauge/homebrew,ralic/homebrew,gawbul/homebrew,kenips/homebrew,ExtremeMan/homebrew,Red54/homebrew,joshfriend/homebrew,muellermartin/homebrew,BrewTestBot/homebrew,BrewTestBot/homebrew,tutumcloud/homebrew,sferik/homebrew,galaxy001/homebrew,ryanfb/homebrew,Asuranceturix/homebrew,dericed/homebrew,deorth/homebrew,bigbes/homebrew,Homebrew/homebrew,SteveClement/homebrew,alebcay/homebrew,bukzor/linuxbrew,3van/homebrew,SuperNEMO-DBD/cadfaelbrew,cprecioso/homebrew,scorphus/homebrew,sometimesfood/homebrew,hanxue/homebrew,osimola/homebrew,TaylorMonacelli/homebrew,sjackman/linuxbrew,deorth/homebrew,marcwebbie/homebrew,polishgeeks/homebrew,theeternalsw0rd/homebrew,Homebrew/linuxbrew,ybott/homebrew,muellermartin/homebrew,kenips/homebrew,ryanfb/homebrew,vigo/homebrew,iostat/homebrew2,TaylorMonacelli/homebrew,osimola/homebrew,dunn/homebrew,MoSal/homebrew,ybott/homebrew,redpen-cc/homebrew,SuperNEMO-DBD/cadfaelbrew,3van/homebrew,liamstask/homebrew,optikfluffel/homebrew,sakra/homebrew,thinker0/homebrew,apjanke/homebrew,SuperNEMO-DBD/cadfaelbrew,georgschoelly/homebrew,decors/homebrew,nandub/homebrew,dickeyxxx/homebrew,booi/homebrew,tschoonj/homebrew,ablyler/homebrew,tutumcloud/homebrew,ryanfb/homebrew,drbenmorgan/linuxbrew,scpeters/homebrew,chadcatlett/homebrew,hakamadare/homebrew,youtux/homebrew,benjaminfrank/homebrew,Asuranceturix/homebrew,cscetbon/homebrew,apjanke/homebrew,quantumsteve/homebrew,keith/homebrew,utzig/homebrew,kevinastone/homebrew,esamson/homebrew,getgauge/homebrew,LinusU/homebrew,marcwebbie/homebrew,DoomHammer/linuxbrew,quantumsteve/homebrew,dutchcoders/homebrew,treyharris/homebrew,dplarson/homebrew,tschoonj/homebrew,Red54/homebrew,haihappen/homebrew,frodeaa/homebrew,drewwells/homebrew,chadcatlett/homebrew,getgauge/homebrew,mkrapp/homebrew,LinusU/homebrew,Red54/homebrew,haihappen/homebrew,menivaitsi/homebrew,dickeyxxx/homebrew,sferik/homebrew,sometimesfood/homebrew,Asuranceturix/homebrew,filcab/homebrew,vigo/homebrew,dplarson/homebrew,utzig/homebrew,jamer/homebrew,Chilledheart/homebrew,tschoonj/homebrew,hakamadare/homebrew,georgschoelly/homebrew,lrascao/homebrew,joshfriend/homebrew,influxdata/homebrew,vigo/homebrew,dalanmiller/homebrew,menivaitsi/homebrew,influxdb/homebrew,ear/homebrew,TaylorMonacelli/homebrew,hongkongkiwi/homebrew,theeternalsw0rd/homebrew,nandub/homebrew,hakamadare/homebrew,thinker0/homebrew,slyphon/homebrew,optikfluffel/homebrew,brunchboy/homebrew,lrascao/homebrew,thinker0/homebrew,nandub/homebrew,MartinDelille/homebrew,johanhammar/homebrew,optikfluffel/homebrew,OJFord/homebrew,elyscape/homebrew,TaylorMonacelli/homebrew,bigbes/homebrew,emcrisostomo/homebrew,emcrisostomo/homebrew,recruit-tech/homebrew,dunn/homebrew,sferik/homebrew,base10/homebrew,mkrapp/homebrew,alebcay/homebrew,reelsense/linuxbrew,dutchcoders/homebrew,afh/homebrew,emcrisostomo/homebrew,benjaminfrank/homebrew,dericed/homebrew,georgschoelly/homebrew,youtux/homebrew,Red54/homebrew,ilovezfs/homebrew,hanxue/homebrew,ralic/homebrew,Chilledheart/homebrew,sjackman/linuxbrew,influxdb/homebrew,dongcarl/homebrew,ilovezfs/homebrew,brunchboy/homebrew,sakra/homebrew,tutumcloud/homebrew,reelsense/homebrew,emcrisostomo/homebrew,skinny-framework/homebrew,recruit-tech/homebrew,eighthave/homebrew,cprecioso/homebrew,cosmo0920/homebrew,sakra/homebrew,bukzor/linuxbrew,polishgeeks/homebrew,esamson/homebrew,DoomHammer/linuxbrew,ear/homebrew,dalanmiller/homebrew,elyscape/homebrew,totalvoidness/homebrew,retrography/homebrew,Linuxbrew/linuxbrew,michaKFromParis/homebrew-sparks,dutchcoders/homebrew,drbenmorgan/linuxbrew,sakra/homebrew,quantumsteve/homebrew,liamstask/homebrew,apjanke/homebrew,base10/homebrew,alebcay/homebrew,hongkongkiwi/homebrew,drewwells/homebrew,dongcarl/homebrew,hongkongkiwi/homebrew,pcottle/homebrew,filcab/homebrew,ear/homebrew,brunchboy/homebrew,utzig/homebrew,drewwells/homebrew,MoSal/homebrew,kodabb/homebrew,alebcay/homebrew,cscetbon/homebrew,apjanke/homebrew,DoomHammer/linuxbrew,decors/homebrew,bigbes/homebrew,esamson/homebrew,AlexejK/homebrew,ebouaziz/linuxbrew,theeternalsw0rd/homebrew,yazuuchi/homebrew,osimola/homebrew,royhodgman/homebrew,afh/homebrew,kevinastone/homebrew,frodeaa/homebrew,ear/homebrew,reelsense/homebrew,chadcatlett/homebrew,dickeyxxx/homebrew,utzig/homebrew,slyphon/homebrew,scorphus/homebrew,elgertam/homebrew,SteveClement/homebrew,LinusU/homebrew,sferik/homebrew,dalanmiller/homebrew,johanhammar/homebrew,galaxy001/homebrew,pcottle/homebrew,gawbul/homebrew,AlexejK/homebrew,dplarson/homebrew,skinny-framework/homebrew,booi/homebrew,hanxue/homebrew,ilovezfs/homebrew,yazuuchi/homebrew,BrewTestBot/homebrew,jsjohnst/homebrew,menivaitsi/homebrew,kenips/homebrew,retrography/homebrew,michaKFromParis/homebrew-sparks,pcottle/homebrew,MartinDelille/homebrew,ablyler/homebrew,youtux/homebrew,Homebrew/homebrew,theeternalsw0rd/homebrew,Chilledheart/homebrew,treyharris/homebrew,gicmo/homebrew,royhodgman/homebrew,osimola/homebrew,Asuranceturix/homebrew,kodabb/homebrew,saketkc/linuxbrew,Chilledheart/homebrew,AlexejK/homebrew,dutchcoders/homebrew,skatsuta/homebrew,tutumcloud/homebrew,influxdata/homebrew,yumitsu/homebrew,mobileoverlord/homebrew-1,gnubila-france/linuxbrew,ExtremeMan/homebrew,johanhammar/homebrew,elgertam/homebrew,ryanfb/homebrew,keith/homebrew,sometimesfood/homebrew,kevinastone/homebrew,redpen-cc/homebrew,booi/homebrew,galaxy001/homebrew,royhodgman/homebrew,Homebrew/homebrew,benjaminfrank/homebrew,decors/homebrew,eighthave/homebrew,redpen-cc/homebrew,OJFord/homebrew,drbenmorgan/linuxbrew,3van/homebrew,dunn/homebrew,skinny-framework/homebrew,kenips/homebrew,vigo/homebrew,dickeyxxx/homebrew,recruit-tech/homebrew,ebouaziz/linuxbrew,scpeters/homebrew,Angeldude/linuxbrew,pcottle/homebrew,filcab/homebrew,dongcarl/homebrew,BrewTestBot/homebrew,ybott/homebrew,scorphus/homebrew,afh/homebrew,mobileoverlord/homebrew-1,base10/homebrew,scpeters/homebrew,johanhammar/homebrew,haihappen/homebrew,Linuxbrew/linuxbrew,yazuuchi/homebrew,cprecioso/homebrew,saketkc/linuxbrew,royhodgman/homebrew,josa42/homebrew,sjackman/linuxbrew,ralic/homebrew,hanxue/homebrew,treyharris/homebrew,brunchboy/homebrew,optikfluffel/homebrew,influxdata/homebrew,jsjohnst/homebrew,MartinDelille/homebrew,dericed/homebrew,afh/homebrew,iostat/homebrew2,joshfriend/homebrew,eighthave/homebrew,mobileoverlord/homebrew-1,reelsense/linuxbrew,SuperNEMO-DBD/cadfaelbrew,skatsuta/homebrew,ilovezfs/homebrew,influxdata/homebrew,totalvoidness/homebrew,redpen-cc/homebrew,josa42/homebrew,skatsuta/homebrew,josa42/homebrew,benjaminfrank/homebrew,dongcarl/homebrew,quantumsteve/homebrew,scorphus/homebrew,marcwebbie/homebrew,yazuuchi/homebrew,sometimesfood/homebrew,haihappen/homebrew,treyharris/homebrew,michaKFromParis/homebrew-sparks,hongkongkiwi/homebrew,ExtremeMan/homebrew,jamer/homebrew,jsjohnst/homebrew,cosmo0920/homebrew,jamer/homebrew,sjackman/linuxbrew,menivaitsi/homebrew,cosmo0920/homebrew,MartinDelille/homebrew,AlexejK/homebrew,iostat/homebrew2,liamstask/homebrew,kodabb/homebrew,gnubila-france/linuxbrew,LinusU/homebrew,slyphon/homebrew,influxdb/homebrew,reelsense/linuxbrew,retrography/homebrew,yumitsu/homebrew,Homebrew/homebrew,youtux/homebrew,deorth/homebrew