Skip to content

Commit

Permalink
Enable metadata for Fastly function again
Browse files Browse the repository at this point in the history
The collection of metadata was disabled in rust-lang#387, because the metadata
contained an unstable property that broke the change detection in
Terraform. This issue has been resolved upstream by introducing buckets
for the heap allocation size, which reduces the risk of changes in the
metadata while preserving the usefulness of the property.

See fastly/cli#1130 for details on the buckets.
  • Loading branch information
jdno committed Feb 15, 2024
1 parent aff57e6 commit ffa2bea
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -19,7 +19,7 @@ script_path=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
project_path=$(cd "${script_path}" && cd ".." && pwd)
project_name="${project_path##*/}"

cd "${project_path}" && fastly compute build --metadata-disable &>/dev/null
cd "${project_path}" && fastly compute build &>/dev/null

# Return a valid JSON object that Terraform can consume
echo "{\"path\": \"./${project_name}/pkg/compute-static.tar.gz\"}"

0 comments on commit ffa2bea

Please sign in to comment.