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:
parent
c225a899cd
commit
ce1526bc6d
|
@ -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"
|
||||
|
|
2
build.py
2
build.py
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue