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

Fix generated chown command (#1151) #1152

Merged
merged 1 commit into from
Aug 28, 2018
Merged

Fix generated chown command (#1151) #1152

merged 1 commit into from
Aug 28, 2018

Conversation

mcenkar
Copy link
Contributor

@mcenkar mcenkar commented Aug 26, 2018

@muuki88
Copy link
Contributor

muuki88 commented Aug 26, 2018

Thanks for your pull request 🤗🤩

Can you give a bit more details on what issue this fixes and how you ran into it?

A regression test would be helpful for future changes 😊

@mcenkar
Copy link
Contributor Author

mcenkar commented Aug 26, 2018

Hi @muuki88 ,

I tried to put detail into related issue: #1151

Basically we have files with $$ in name, and without single quotes around filename it gets replaced with PID, try on your box:

$ echo $$
3548

I was thinking of writing a test, but there's nothing currently there and it's an inner helper method 😢

  private[debian] def makeChownReplacements(mappings: Seq[LinuxPackageMapping],
                                            streams: TaskStreams): (String, String) = {
    // how to create the chownCmd. TODO maybe configurable?
    def chownCmd(user: String, group: String)(path: String): String =
      s"chown $user:$group '$path'"

@muuki88 muuki88 added the debian label Aug 26, 2018
@muuki88
Copy link
Contributor

muuki88 commented Aug 26, 2018

Ah! My bad. I overlooked the #1151 reference.

I was thinking of writing a test, but there's nothing currently there and it's an inner helper method 😢

Most of the stuff is tested via sbt scripted 😄 Take a look at src/sbt-test/debian. You can either add it to an existing test or create new one 👍

@mcenkar
Copy link
Contributor Author

mcenkar commented Aug 26, 2018

Thanks for info, I adjusted debian tests 👍 😄

@mcenkar
Copy link
Contributor Author

mcenkar commented Aug 26, 2018

@muuki88 Thanks for approving, tests seemed to be stuck so I rebased. Still stuck on previous build though 😢 Any chance to get this out as official release or snapshot tomorrow?

@muuki88
Copy link
Contributor

muuki88 commented Aug 26, 2018

Looks like we killed Travis 😅 I'm currently testing an automated release from Travis and things got stuck a few times. Probably because the project asks for a lot of build resources.

If the new release process works, I might be able to get something out tomorrow ☺️

@muuki88
Copy link
Contributor

muuki88 commented Aug 26, 2018

Once more :)

@mcenkar
Copy link
Contributor Author

mcenkar commented Aug 30, 2018

@muuki88 Hi, any chance to get this out as a released package/snapshot?

@muuki88
Copy link
Contributor

muuki88 commented Aug 31, 2018

Release 1.3.7 this morning :)

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

Successfully merging this pull request may close these issues.

2 participants