In Washington State they started with BioTrackTHC; couldn't share the code cause it's a proprietary and a security risk; however they were dumping parts of the database as CSVs so folk could check that (and confirm some bugs!). Then WA switched to LeafData (MJ Freeway) and wouldn't share that code either; continued to share similar data-dumps. Now WA has moved to just uploading CSVs to the State system in code they wrote themselves -- and still won't share the code (and now are doing even less to share the data).
It's frustrating when viable open source solutions exist and are actively ignored by the State agencies (we were blocked from even participating in workgroups about the future of T&T (which don't really matter, they didn't even follow the recommendations of their own workgroups))