Skip to content
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

-push-lite-variation target doesn't generate Lite commit message #8

Closed
raamdev opened this issue Jun 26, 2015 · 7 comments
Closed

-push-lite-variation target doesn't generate Lite commit message #8

raamdev opened this issue Jun 26, 2015 · 7 comments
Assignees
Labels

Comments

@raamdev
Copy link
Contributor

raamdev commented Jun 26, 2015

The routine in the -push-lite-variation target that generates the commit message (.~commit.msg) using the CHANGELOG.md file is currently broken. While the sed commands are correct (and work fine if you run them from the terminal), the .~commit.msg file always ends up empty when running the -push-lite-variation target, so the build script cannot commit the changes.

@raamdev raamdev added the bug label Jun 26, 2015
@raamdev raamdev self-assigned this Jun 26, 2015
@jaswrks
Copy link
Contributor

jaswrks commented Sep 25, 2015

Noting that this routine that you built is now a file of its own.
src/psr4/targets/push-lite.xml

@jaswrks
Copy link
Contributor

jaswrks commented Sep 25, 2015

I'm not great with sed, so I'm not entirely sure about the magic that you're doing here. However, I noticed there is no dollar sign in front of {project_version}. Not sure if that's a problem or not, but it caught my attention. Maybe that should be: ${project_version} ?

https://github.com/websharks/phings/blob/feature/4/src/psr4/targets/push-lite.xml#L108

@jaswrks
Copy link
Contributor

jaswrks commented Sep 25, 2015

Am I correct that this line is just to print the changelog in the output?
https://github.com/websharks/phings/blob/feature/4/src/psr4/targets/push-lite.xml#L110

@raamdev
Copy link
Contributor Author

raamdev commented Sep 25, 2015

I'm not great with sed, so I'm entirely sure about the magic that you're doing here.

The goal there was to extract the entire changelog entry in CHANGELOG.md for ${project_version} , the relevant section starting with = vXXXXXX = (i.e., = ${project_version} =), and then writing that entire version's changelog entry to ~.commit.msg. The following line cleans up (removes) the bottom two lines in ~.commit.msg because the first sed command captured a blank line and the following version header.

The missing $ looks wrong to me too. I did have this entire section of the build script working properly at one point, but the last time I remember using it that specific section (automatically generating a commit message using the changelog from CHANGELOG.md) was not working properly. We then reverted ZenCache Lite to the old codebase, so this Lite generation part of the build script was not used and I stopped working on it. I created this GitHub issue as a way of remembering that the problem existed. :-)

Am I correct that this line is just to print the changelog in the output?

That is correct.

@jaswrks
Copy link
Contributor

jaswrks commented Oct 2, 2015

👍

@jaswrks jaswrks assigned jaswrks and unassigned raamdev Apr 12, 2016
jaswrks pushed a commit that referenced this issue Apr 14, 2016
@jaswrks jaswrks mentioned this issue Apr 14, 2016
@jaswrks
Copy link
Contributor

jaswrks commented Apr 14, 2016

This will be fixed by: #83

@jaswrks
Copy link
Contributor

jaswrks commented Apr 16, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants