scrthq / PoshBot.GChat.Backend

Google Chat backend for PoshBot leveraging a Google Sheet as a message queue with Apps Script as the bot endpoint managing the Sheet contents
Apache License 2.0
9 stars 0 forks source link

"PoshBot.GChat.Backend.psm1" missing from Module #1

Closed phatmandrake closed 5 years ago

phatmandrake commented 5 years ago

"PoshBot.GChat.Backend.psm1" seems to be missing since the Aug 16, 2018 Commit, which is causing Import-Module to fail.

scrthq commented 5 years ago

Oh wow, seeing that! Thanks for pointing that out, @phatmandrake! Getting that fixed by tonight!

scrthq commented 5 years ago

Alright, so after digging through, the issue isn't that the PSM1 is missing from the repo, it's that the CI build and deploy deployed the working directory to the PowerShell Gallery and not the module compiled during the build.

Here's the psake task that compiles the module during the CI build:

https://github.com/scrthq/PoshBot.GChat.Backend/blob/master/psake.ps1#L111..L140

If you clone this repo locally then run build.ps1, you'll see a new folder generated in the root of the repo named out which contains the compiled module in it.

Working on updating the deployment task on the build script once I have a second! Building it locally will get you going for now though, at least =]

scrthq commented 5 years ago

New version building now that should fix this =]

scrthq commented 5 years ago

image

Fixed and available on the Gallery now!

phatmandrake commented 5 years ago

Excellent! I was able to get around it by using the .psm1 I found on the 16th, thanks for fixing this!

scrthq commented 5 years ago

You bet! Thanks for bringing it to my attention!