bitter-ability-32190
12/29/2021, 2:02 AMdata/foo.json
I know is relative to some dir ./bar
(e.g. ./bar/data.foo.json
), if it's a valid resource I want it's address, otherwise no-op)bitter-ability-32190
12/29/2021, 2:08 AMGet(Address, AddressInput.parse(possible_resource, relative_to=the_path))
bitter-ability-32190
12/29/2021, 2:13 AMbitter-ability-32190
12/29/2021, 2:20 AMResolveError
fast-nail-55400
12/29/2021, 2:25 AMGet(Digest, PathGlobs(…))
to attempt to make a Digest
out of files from the repo.
2. Require that the resource file be the subject of a `resource`target and then use `DependenciesRequest`to get the deps and then just find the resource target in the returned Dependencies
and load it via its Sources
field (i.e., with HydratesSourcesRequest
or equivalent).curved-television-6568
12/29/2021, 6:46 AMWondering if I should make another flavor of this that returns an Optional and doesn’t raiseI think this would be useful to have. For the Docker backend, when using heuristics to determine possible dependencies, it would be good to have a rule to apply that gives you back any valid addresses, and discards the invalid ones without err.ResolveError
bitter-ability-32190
12/29/2021, 8:47 AMbitter-ability-32190
12/29/2021, 9:00 AMfast-nail-55400
12/29/2021, 9:35 AMTargets
and scan for whatever targets has the resource
-specific sources field.fast-nail-55400
12/29/2021, 9:36 AMfor_sources_type
and enable_codegen
set appropriately.fast-nail-55400
12/29/2021, 9:37 AMfor_sources_type
you should see some examples in the code that deal with resource
targets.fast-nail-55400
12/29/2021, 9:40 AMenable_codegen=True
will allow you to work with anything that can codegen to a resource. This is how relocated_files
works.)fast-nail-55400
12/29/2021, 9:41 AMbitter-ability-32190
12/29/2021, 3:32 PMbitter-ability-32190
12/29/2021, 3:38 PM