Skip to content

Conversation

@falken10vdl
Copy link
Contributor

@falken10vdl falken10vdl commented Dec 11, 2025

Sometimes the Makefile to build the addons fai due to some temporary issue to download software usign wget commands.
This is a proposal to make that a little bit more resilient.
Cheers!


# jQuery is required for web UI functionality
cd build/bonsai/bim/data/webui/static/js/ && wget https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js
cd build/bonsai/bim/data/webui/static/js/ && wget --tries=5 --timeout=60 --waitretry=5 --retry-connrefused --continue https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js

Choose a reason for hiding this comment

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

Since this is largely repetetive I suggest extracting it into a function, for the benefit that functions give.

Download=cd $1 && wget --tries=5 --timeout=60 --waitretry=5 --retry-connrefused --continue $2

...

	$(call Download, build/bonsai/bim/data/webui/static/js/,https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js)
	...
	$(call Download, build, -O ifc2json.zip https://github.com/IFCJSON-Team/IFC2JSON_python/archive/refs/heads/master.zip)

Haven't been doing raw gnumake for a while so syntax might be slightly off.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes! Thanks for the feedback. I have updated it (also increased --waitretry=10).
Cheers!

@falken10vdl
Copy link
Contributor Author

@Andrej730 Do you think this is a useful addition? In general github links work properly but last week they were not working (manually they were with these parameters) and making the makefile to fail.
Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants