Moving SMO files to its own dedicated module? #8567
Replies: 2 comments 2 replies
-
git-fu aside the only thing that needs to be changed/notified is that downloading the zip from the repo may not suffice to have a fully working module. |
Beta Was this translation helpful? Give feedback.
-
I think the repository shouldn't have any binaries whatsoever and all the libraries should be downloaded during the build phase. I know the main concept always was that anyone could download the repo and start using the module, but it may have caught up with us now. I personally consider having binary files in the repository an anti-pattern, especially if the files can be downloaded from an upstream source. |
Beta Was this translation helpful? Give feedback.
-
I am currently working on both making the repository smaller and regularly updating SMO.
I plan to keep more DLLs in the SMO directory instead of cleaning them like I usually do, because cleaning requires manual intervention and I'd like to automate our build process. Keeping the current SMO library structure means that dbatools will be bigger with each download.
I would like to create a new repo called dbatools-library and put our project there, I'd then remove the SMO files from dbatools, and creating a new module with just these giant files. That means that each time you update dbatools, you won't have to update the SMO files unless the SMO files have been updated and dbatools-library's version gets bumped.
Oh and the new repo won't have SMO in it, it'll just have the files needed for the CI/CD build process to do its thing. Also, that CI/CD process will be in my own private repo since I'll be signing it but I'll share the code that's used.
Beta Was this translation helpful? Give feedback.
All reactions