[Scons-users] **JUNK** Value/Alias Nodes default to up-to-date

Brad Kraemer computerpro_58 at hotmail.com
Sun Jan 2 10:56:51 EST 2022


Hello,

I filed a GitHub Issue <https://github.com/SCons/scons/issues/4079> and 
got bounced to this mailing list. So here we go again:

Value/Alias nodes (as created by the Alias() and Value() 
functions/methods receptively) default to up-to-date.

SCons 4.1.0

Python 3.9

Installed from nixpkgs (NixOS, $ nix-env -iA nixos.scons)

Linux

Reproduction (SConstruct):

def print_target_1(target, source, env):
    print("Target 1 built")
  
def print_alias_1(target, source, env):
    print("[I'm not getting called]")
  
def print_alias_2(target, source, env):
    print("I'm getting called because of AlwaysBuild() workaround")
  
t1 = Command("t1", [], Action(print_target_1, cmdstr=None))
Default(t1)
  
v = Value("_")
a1 = Alias("a1", v, Action(print_alias_1, cmdstr=None))
a2 = Alias("a2", v, Action(print_alias_2, cmdstr=None))
Depends(t1, a1)
Depends(t1, a2)
  
AlwaysBuild(a2)


Invoke via executing '$ scons' from the directory where the above 
SConstruct file exists.


Thanks,

simplejack-src

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20220102/38db621b/attachment.htm>


More information about the Scons-users mailing list