Re: **JUNK** Value/Alias Nodes default to up-to-date

Bill Deegan <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <CAEyG4CHTw6fEM_XkDTzvpJ+mY_au_qBkZVS=d15KvOUDU1Ybvw@mail.gmail.com>
also why **JUNK** in subject?

On Sun, Jan 2, 2022 at 2:20 PM Bill Deegan <[email protected]>
wrote:

> What output do you see when you run your example?
>
>
> On Sun, Jan 2, 2022 at 7:56 AM Brad Kraemer <[email protected]>
> wrote:
>
>> 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
>>
>>
>> _______________________________________________
>> Scons-users mailing list
>> [email protected]
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.