Why Building the Sanctuary Does Not Push Aside the Shabbat

Yalkut Shimoni on Torah 408:3

"And Moses gathered" - why is it stated? Because it says (Exodus 25:8), "And they shall make Me a sanctuary," I might hear that this applies whether on a weekday or on the Shabbat, and how do I uphold (Exodus 31:14), "those who profane it shall surely be put to death"? Concerning all other labors except the labor of the Sanctuary. [Or perhaps even the labor of the Sanctuary,] and how do I uphold "And they shall make Me a sanctuary"? On all the other days [except the Shabbat, or even on the Shabbat]. And reason would suggest, if the service that comes only from all its preparations nonetheless overrides the Shabbat, the preparations for the service, without which the service cannot come, by reason should override the Shabbat, such as when the horn of the altar was removed or the slaughtering knife became defective. I might hear that one may repair them even on the Shabbat. Scripture teaches, "And Moses gathered," on a weekday and not on the Shabbat. "And he said to them, These are the things." Rabbi says, this comes to include the thirty-nine principal categories of labor, which Moses told them by word of mouth.

Themes