Skip to content

Conversation

@eksperimental
Copy link
Contributor

Previously the generated .build file would contain these entries:

... assets assets/kv-observer.png assets/logo.png assets/logo.png ... 
…rmatter Previously the generated `.build` file would contain these entries: ... assets assets/kv-observer.png assets/logo.png assets/logo.png ...
@github-actions
Copy link

github-actions bot commented May 9, 2025

generate_redirects(config, ".html"))
|> Enum.uniq()
|> Kernel.--([@assets_dir])
|> Enum.sort()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move this handling to the generate_build function instead? It feels it is more part of its concern. Also, do we need to exclude @assets_dir? Why is it showing up in the list in the first place?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have moved the logic to generate_build.

I don't think we need to list folders in the .build file. If we decide to, we should be consistent and list all the folders consistently.
It is showing up because File.cp_r!/3 returns the dirs as well as the files.
I have taken a different approach and exclude all dirs/subdirs for the assets.

@josevalim josevalim merged commit dfa2ab4 into elixir-lang:main May 10, 2025
5 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@eksperimental eksperimental deleted the chore/dedup-build-file branch May 10, 2025 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants