Install shared authoring skill and add retained drafts browser
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Compatibility entry point: install Go binaries only, with standard Go paths."""
|
||||
"""Compatibility entry point for the standard binary and skill installer."""
|
||||
from pathlib import Path
|
||||
import subprocess
|
||||
import sys
|
||||
@@ -7,4 +7,4 @@ import sys
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) != 1:
|
||||
sys.exit("Install binaries with go install ./cmd/...; set GOBIN to choose the destination. Configure and start services separately.")
|
||||
sys.exit(subprocess.call(["go", "install", "-trimpath", "./cmd/..."], cwd=Path(__file__).resolve().parents[1]))
|
||||
sys.exit(subprocess.call([str(Path(__file__).resolve().parents[1]/"install.sh")]))
|
||||
|
||||
@@ -12,11 +12,11 @@ class InstallationTests(unittest.TestCase):
|
||||
root=Path(directory)
|
||||
capture=root/"args"
|
||||
executable=root/"go"
|
||||
executable.write_text('#!/bin/sh\nprintf "%s\\n" "$GOBIN" "$@" > "'+str(capture)+'"\n')
|
||||
executable.write_text('#!/bin/sh\nprintf "%s\\n" "$GOBIN" "$@" >> "'+str(capture)+'"\n')
|
||||
executable.chmod(0o700)
|
||||
env=dict(os.environ,PATH=str(root)+os.pathsep+os.environ["PATH"],GOBIN=str(root/"bin"))
|
||||
subprocess.run([str(Path(__file__).resolve().parents[1]/"install.sh")],env=env,check=True)
|
||||
self.assertEqual(capture.read_text().splitlines(),[str(root/"bin"),"install","-trimpath","./cmd/..."])
|
||||
self.assertEqual(capture.read_text().splitlines(),[str(root/"bin"),"install","-trimpath","./cmd/...",str(root/"bin"),"run","./cmd/pipelines","skill","install"])
|
||||
self.assertFalse((root/"bin").exists())
|
||||
|
||||
def test_standard_installer_rejects_legacy_provisioning_flags(self):
|
||||
|
||||
Reference in New Issue
Block a user