1
0
Fork 0

Pin installed GoPy versions to 0.4.7

GoPy 0.4.8 and beyond introduce breaking changes related types returned
in function calls (e.g. slice element types). Previously, these would be
a pointer handle which would then need to be set into a concrete
instance of the type required by callers; GoPy will now return concrete
instances itself.

Moving to the new semantics requires changes to code, and additional
testing; pinning the version helps us migrate on our own timeline.
This commit is contained in:
Alex Palaistras 2023-12-14 13:49:39 +00:00
parent c225a899cd
commit ce1526bc6d
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ RUN ln -s /venv/lib/python$PYTHONVER /venv/lib/python
WORKDIR /build
ENV GOBIN="/usr/local/bin"
RUN go install github.com/go-python/gopy@latest
RUN go install github.com/go-python/gopy@v0.4.7
RUN go install golang.org/x/tools/cmd/goimports@latest
ENV PATH="/root/.local/bin:$PATH"

View File

@ -7,7 +7,7 @@ from pathlib import Path
def main():
os.environ["PATH"] = os.path.expanduser("~/go/bin") + ":" + os.environ["PATH"]
subprocess.run(["go", "install", "github.com/go-python/gopy@latest"], check=True)
subprocess.run(["go", "install", "github.com/go-python/gopy@v0.4.7"], check=True)
subprocess.run(
["go", "install", "golang.org/x/tools/cmd/goimports@latest"], check=True
)