Skip to content

📦 Use VERSION file debian/versiion for debian package if we find it#1257

Merged
tekton-robot merged 1 commit intotektoncd:masterfrom
chmouel:issue-1256-debian-package-from-ppa-is-not-reporting-properly-th
Nov 25, 2020
Merged

📦 Use VERSION file debian/versiion for debian package if we find it#1257
tekton-robot merged 1 commit intotektoncd:masterfrom
chmouel:issue-1256-debian-package-from-ppa-is-not-reporting-properly-th

Conversation

@chmouel
Copy link
Copy Markdown
Member

@chmouel chmouel commented Nov 17, 2020

Use debian/VERSION when building debian package

It seems that when building on launchpad, we cannot detect the version
by doing a curl. Perhaps they restrict network access or github API get
restricted?

We can't use just VERSION at the root dir since dpkg-source doesnt
include it, but we can do that inside the debian/ dir so let's just do
that.

Fixes bug #1256

NONE

@tekton-robot tekton-robot added the release-note-none Denotes a PR that doesnt merit a release note. label Nov 17, 2020
@tekton-robot tekton-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Nov 17, 2020
@tekton-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vdemeester

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 17, 2020
@chmouel
Copy link
Copy Markdown
Member Author

chmouel commented Nov 17, 2020

/hold

dpkg-source does not include the non GIT files and my knowledge of debian packaging sees its liimit, let's find another way

@tekton-robot tekton-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 17, 2020
It seems that when building on launchpad, we cannot detect the version
by doing a curl. Perhaps they restrict network access or github API get
restricted?

We can't use just VERSION at the root dir since dpkg-source doesnt
include it, but we can do that inside the debian/ dir so let's just do
that.

Fixes bug tektoncd#1256

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
@chmouel chmouel force-pushed the issue-1256-debian-package-from-ppa-is-not-reporting-properly-th branch from d75d8f8 to a80adb8 Compare November 17, 2020 16:15
@chmouel
Copy link
Copy Markdown
Member Author

chmouel commented Nov 17, 2020

This change should work, tested it by uploading a package directly, see log (detected as 0.14.0) :

https://launchpadlibrarian.net/507542670/buildlog_ubuntu-groovy-amd64.tektoncd-cli_0.14.0-6_BUILDING.txt.gz

/hold cancel

@tekton-robot tekton-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 17, 2020
@chmouel chmouel changed the title 📦 Use VERSION file for release_version if we find it 📦 Use VERSION file debian/versiion for debian package if we find it Nov 17, 2020
@chmouel
Copy link
Copy Markdown
Member Author

chmouel commented Nov 24, 2020

@piyush-garg
Copy link
Copy Markdown
Contributor

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 25, 2020
@tekton-robot tekton-robot merged commit 147174f into tektoncd:master Nov 25, 2020
chmouel added a commit that referenced this pull request Dec 17, 2020
#1260 | [vinamra28] Use goreleaser task from tektoncd/catalog | 2020/11/18-09:01
#1261 | [Pradeep Kumar] update README to v0.14.0 | 2020/11/18-12:25
#1259 | [Pratik Jagrut] Add --no-headers flag to tkn condition list command | 2020/11/25-12:19
#1257 | [Chmouel Boudjnah] Use debian/VERSION when building debian package | 2020/11/25-12:33
#1254 | [Pratik Jagrut] Add --no-headers flag to tkn triggerbinding list command | 2020/11/25-14:13
#1255 | [Pratik Jagrut] Add --no-headers flag to tkn triggertemplate list command | 2020/11/25-14:13
#1258 | [Pratik Jagrut] Add --no-headers flag to tkn eventlistener list command | 2020/11/25-15:11
#1178 | [Vincent Demeester] Basic execution plugin module 📟 | 2020/12/01-12:25
#1242 | [Daniel Helfand] allow --prefix-name and --timeout to be overrode when using --last or --use options | 2020/12/01-12:25
#1250 | [Sunghoon Kang] Ignore --follow flag when TaskRun or PipelineRun is done | 2020/12/02-15:28
null | [SM43] Bumps Hub CLI Dependency | 2020/12/16-12:32
null | [Matt Moore] Hoist an ActivityTimeout option. | 2020/12/16-18:26
null | [Pradeep Kumar] bump pipeline and triggers dep | 2020/12/17-07:47
null | [Daniel Helfand] remove --check shorthand and add global flags to version cmd | 2020/12/17-08:59

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
@chmouel chmouel deleted the issue-1256-debian-package-from-ppa-is-not-reporting-properly-th branch June 27, 2021 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesnt merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants