#16729 closed task (fixed)
No trunk branch for GitHub plugins
| Reported by: | Don-vip | Owned by: | floscher |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core | Version: | |
| Keywords: | git svn github trunk master | Cc: |
Description (last modified by )
I see more and more plugins using a "trunk" git branch on GitHub. This is not correct. GitHub bridge maps "trunk" to the Git HEAD branch, which is usually master, and it seems it chokes if the branch is also called trunk, causing many svn errors during update or commit (right now I can't commit on pt_assistant because of this):
Commit failed (details follow): Unexpected server error 500 'Internal Server Error' on '/JOSM/pt_assistant/!svn/wrk/7dffa700-c16c-324f-a02f-f3f064ba81a2/branches/trunk/.classpath'
Can you please rename the few "trunk" branches to master so we get back a clean situation?
Attachments (0)
Change History (13)
comment:1 by , 7 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 7 years ago
| Keywords: | git svn github trunk master added |
|---|
comment:3 by , 7 years ago
follow-up: 6 comment:4 by , 7 years ago
For the Mapillary plugin I use trunk for the state that is in the SVN, which JOSM maintainers can modify. master is used as the stable and always successfully building branch. I would like to keep those two branches there. And I can't unprotect the master branch anyway since my admin rights to the Mapillary repository were revoked a while ago.
I will rename the trunk branch for the Mapillary plugin to dev, but otherwise leave it as is.
For the pt_assistant plugin this is a left-over from the migration to git. I wanted to switch the name to master anyway, once GSoC is over. I'll change the name soon.
follow-up: 7 comment:5 by , 7 years ago
Regarding the *.lang files: If you have gettext installed, they are generated. If it's not installed, they are not included in the *.jar file.
The translations are in the *.po files, so there are not so many binary files in the repo.
comment:6 by , 7 years ago
Replying to floscher:
For the Mapillary plugin I use trunk for the state that is in the SVN, which JOSM maintainers can modify. master is used as the stable and always successfully building branch.
I don't see the need for distinction (it sounds just like extra work), but OK. Just a reminder: the branch used by JOSM SVN must always compile too.
And I can't unprotect the master branch anyway since my admin rights to the Mapillary repository were revoked a while ago.
Maybe an unwanted side effect of my last privileges cleanup. I've added you admin again.
I will rename the
trunkbranch for the Mapillary plugin todev, but otherwise leave it as is.
For the pt_assistant plugin this is a left-over from the migration to git. I wanted to switch the name to
masteranyway, once GSoC is over. I'll change the name soon.
Thanks!
follow-up: 9 comment:7 by , 7 years ago
Replying to floscher:
Regarding the *.lang files: If you have gettext installed, they are generated. If it's not installed, they are not included in the *.jar file.
Even with ant?
comment:8 by , 7 years ago
This is also why Jenkins doesn't update Mapillary and pt_assistant plugins unless I manually force the update. Last update was done by me on 13th of August:
Working Copy Root Path: /var/lib/jenkins/jobs/JOSM-Plugins/workspace/jdk/JDK8/pt_assistant URL: https://github.com/JOSM/pt_assistant/branches/trunk Relative URL: ^/branches/trunk Repository Root: https://github.com/JOSM/pt_assistant Repository UUID: 62ad92a2-b1da-500c-55a2-ce57b7db7bff Revision: 383 Node Kind: directory Schedule: normal Last Changed Author: biswesh456 Last Changed Rev: 347 Last Changed Date: 2018-08-13 20:44:57 +0200 (Mon, 13 Aug 2018)
comment:9 by , 7 years ago
Replying to Don-vip:
Replying to floscher:
Regarding the *.lang files: If you have gettext installed, they are generated. If it's not installed, they are not included in the *.jar file.
Even with ant?
No, at the moment only with Gradle. I didn't implement an ant target, because I thought the translations were not relevant for Jenkins. See also an earlier discussion on why Ant and Gradle create slightly different *.jar files.
Is there a need for an ant target that produces *.lang files?
comment:10 by , 7 years ago
As long as at least a Gradle user maintains those plugins, no. But there's a risk we publish a plugin without translations.
comment:11 by , 7 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
I updated the SVN externals to point to a different branch. For the Mapillary and wikipedia plugin the master branch was already used. For the pt_assistant plugin I changed it from trunk to master.
comment:12 by , 7 years ago
This is not enough I think. Right now the svn update fails:
URL 'https://github.com/JOSM/pt_assistant/trunk' at revision 460 doesn't exist
comment:13 by , 7 years ago
I am pretty sure the "trunk" branch must be deleted. Only the repositories with these branches are problematic.



Also, where are the lang files? When I build pt_assistant plugin, the jar contains no translations at all.