It seems cumbersome to add a `shell_source` to an ...
# general
g
It seems cumbersome to add a
shell_source
to an
archive
, in fact it's not possible since the archive target only takes
packages
and
files
. This is my workaround. Is there a better approach?
Copy code
shell_source(
    name="shell",
    source="deploy.sh"
)

# define a second target for same file
file(
    name="file",
    source="deploy.sh",
)

# so we can add our script to the archive
archive(
    format="tar",
    name="scriptsarchive",
    #files=[":shell"] # does not work
    files=[":file"] # works
)
b
Double targets for a single file is the work around we use too. There’s been talk of clarifying/removing/adding-flexibility to the difference between files and resources, which would resolve this properly… but I don’t recall a specific place to link you to