Skip to content

alan-turing-institute/meet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meet people around the Turing

Demo usage of meet

Installation (macOS)

brew tap alan-turing-institute/hut23
brew install alan-turing-institute/hut23/meet

Usage

This package provides two executables: meet and meet-rooms. The former is used to find a meeting time for a group of people (and associated meeting rooms), whereas the latter just shows room availabilility.

You can use the -h flag to get help on how to use each of these executables and view the complete options, but basic usage looks something like:

  • meet aturing jdoe -s 2024-12-25 -d 30

    Find a time for [email protected] and [email protected] to meet on Christmas Day for half an hour.

  • meet-rooms -s 2024-12-25

    List meeting room availability on Christmas Day.


Developer notes

Compiling from source

Install ghcup, then use it to install GHC 9.4 and Cabal 3.8. (Other GHC/Cabal version combinations that are known to work are 9.6/3.8 and 9.8/3.10. You can also check the version combinations we test in GitHub Actions.)

Then run:

git clone [email protected]:alan-turing-institute/meet.git
cd meet
cabal update
cabal build

If it builds successfully, you can then run e.g.

cabal run meet -- aturing jdoe -s 2024-12-25 -d 30

or

cabal run meet-rooms -- -s 2024-12-25

Updating the Homebrew tap

  1. Increment version number in meet.cabal. Commit to the main branch. (There isn't a hard and fast rule for whether to bump the major/minor/patch versions, use your judgment as to whether something is breaking.)
  2. Run git tag -a v0.x.y.z then git push --tags
  3. Get the full commit SHA corresponding to the tag. Then edit line 4 of the meet.rb in the homebrew-hut23 repository to include both the new version and the SHA: https://github.com/alan-turing-institute/homebrew-hut23/blob/main/meet.rb
  4. Build the bottle with brew update; brew uninstall meet; brew install meet --build-bottle; brew bottle meet --no-rebuild
  5. Edit the name of the bottle file, replace meet--0.x.y.z with meet-0.x.y.z (remove the extra hyphen)
  6. Create a new GitHub release on meet for the new version
  7. Upload the renamed bottle file as a binary associated with the release
  8. Inside the bottle do block of the meet.rb file, replace the sha256 cellar... lines with what Homebrew output. Update the version number in the root_url... line.
  9. You can duplicate the sha256 cellar line and replace arm64_ventura with arm64_monterey so that people with macOS Monterey can also use it (the binary will work for them). If you do this, you will need to copy the bottle file, rename it to ...monterey... and upload it to the release as well.
  10. Test that it works with brew update; brew uninstall meet; brew install meet. (Using brew reinstall meet for some reason makes Homebrew attempt to reinstall from source, possibly because the existing installation is from source.)