tl;dr -- lmt needs there to be either:

  • markdown after the last file piece
  • two newline characters
!git clone https://github.com/driusan/lmt
fatal: destination path 'lmt' already exists and is not an empty directory.
%cd lmt
/content/lmt
%%capture
!apt install golang
!go build
import os
os.environ['PATH'] = f'{os.environ["PATH"]}:/content/lmt'
%cd /content
/content
%%writefile test.go.md
# Thing

```go test.go
package main

import (
	fmt
)
```
Overwriting test.go.md
!lmt test.go.md
!cat test.go
cat: test.go: No such file or directory
%%writefile test2.go.md
# Thing

```go test2.go
package main

import (
	fmt
)
```
Overwriting test2.go.md
!lmt test2.go.md
!cat test2.go
cat: test2.go: No such file or directory
%%writefile test3.go.md
# Thing

```go test3.go
package main

import (
	fmt
)
```
# Blah
Writing test3.go.md
!lmt test3.go.md
!cat test3.go
//line test3.go.md:4
package main

import (
	fmt
)
%%writefile test4.go.md
# Thing

```go test4.go
package main

import (
	fmt
)
```
Writing test4.go.md
!lmt test4.go.md
!cat test4.go
//line test4.go.md:4
package main

import (
	fmt
)