-
Notifications
You must be signed in to change notification settings - Fork 758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go1.4.2 compatibility #89
Comments
https://github.com/mtrmac/skopeo/tree/go142 , but please do not merge this. Let those who need to build against the old version apply this manually. |
Correct, let's keep this open for a while. I'll close it as soon as we switch to go 1.5+ in at least RHEL |
@cgwalters then I think this patch https://github.com/mtrmac/skopeo/tree/go142 needs to be applied - same as we do for RHEL |
The patch strategy doesn't really work with the idea of continuous delivery, which is what CAHC is trying to do. At least nontrivial patches to code which is likely to change. I can freeze for now, but it seems clear that we need to pull in a newer golang. This would be a good on-list discussion. |
great |
Okay, last commit in CentOS/sig-atomic-buildscripts#85 : CentOS/sig-atomic-buildscripts@93d09a1 BTW, I think this is a cool aspect of rpmdistro-gitoverlay: I can trivially unwind to arbitrary commits both upstream and dist-git. I picked those commits by looking at the last successful build. |
This is currently known to fail due to containers#89
This is currently known to fail due to containers#89
This is currently known to fail due to containers#89
As of https://rhn.redhat.com/errata/RHSA-2016-1538.html / https://lists.centos.org/pipermail/centos-announce/2016-August/022005.html , CentOS has golang 1.6.3 , so this is no longer relevant. Attaching a diff showing the necessary code and build machinery changes (and parts of #46), purely for long-term archival before I delete the branches. |
Building skopeo in RHEL7 with go1.4.2 gives:
The fastest thing we can do to deal with this is to create a file
signature/json_go1.4.2.go
(or the like) and put there a build tag to be compiled only with go1.4.2 and lower - and another file to build with go > 1.4.2 (which has the undefined methods above in the errors). We can just move thereparanoidUnmarshalJSONObject
so we have two version of this function for the different go versions.
@mtrmac sounds good to you? is
paranoidUnmarshalJSONObject
fine to be reimplemented w/o usingToken
andDelim
which aren't available in go1.4.2?The text was updated successfully, but these errors were encountered: