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

Files without ERB extension not syncing #122

Open
cdenneen opened this issue Jun 7, 2017 · 4 comments
Open

Files without ERB extension not syncing #122

cdenneen opened this issue Jun 7, 2017 · 4 comments

Comments

@cdenneen
Copy link
Contributor

cdenneen commented Jun 7, 2017

Leaving .rb extension

 ~/src/gitlab/puppet/modulesync_configs  master ?  msync update -m "Test change" --noop
Syncing puppet-pes3backup
Cloning repository fresh
Cloning from https://gitlab.domain.local/puppet/puppet-pes3backup.git
No config file under modules/puppet-pes3backup/.sync.yml found, using default values
Using no-op. Files in puppet-pes3backup may be changed but will not be committed.
Files changed:
Files added:


--------------------------------
Syncing puppet-monitoring_scripts
Cloning repository fresh
Cloning from https://gitlab.domain.local/puppet/puppet-monitoring_scripts.git
No config file under modules/puppet-monitoring_scripts/.sync.yml found, using default values
Using no-op. Files in puppet-monitoring_scripts may be changed but will not be committed.
Files changed:
Files added:


--------------------------------
Syncing puppet-profile_base
Cloning repository fresh
Cloning from https://gitlab.domain.local/puppet/puppet-profile_base.git
No config file under modules/puppet-profile_base/.sync.yml found, using default values
Using no-op. Files in puppet-profile_base may be changed but will not be committed.
Files changed:
Files added:


--------------------------------
 ~/src/gitlab/puppet/modulesync_configs  master ?  ls -la modules/*/spec/spec_helper_local.rb
-rw-r--r--  1 cdenneen  staff   340B Jun  6 15:09 modules/puppet-monitoring_scripts/spec/spec_helper_local.rb
-rw-r--r--  1 cdenneen  staff    54B Jun  6 15:09 modules/puppet-profile_base/spec/spec_helper_local.rb

Changing extension to erb

 ~/src/gitlab/puppet/modulesync_configs  master ?  cp moduleroot/spec/spec_helper_local.rb moduleroot/spec/spec_helper_local.rb.erb
 ~/src/gitlab/puppet/modulesync_configs  master ?  msync update -m "Test change" --noop
Syncing puppet-pes3backup
Overriding any local changes to repositories in modules
No config file under modules/puppet-pes3backup/.sync.yml found, using default values
Using no-op. Files in puppet-pes3backup may be changed but will not be committed.
Files changed:
Files added:
spec/spec_helper_local.rb


--------------------------------
Syncing puppet-monitoring_scripts
Overriding any local changes to repositories in modules
No config file under modules/puppet-monitoring_scripts/.sync.yml found, using default values
Using no-op. Files in puppet-monitoring_scripts may be changed but will not be committed.
Files changed:
Files added:


--------------------------------
Syncing puppet-profile_base
Overriding any local changes to repositories in modules
No config file under modules/puppet-profile_base/.sync.yml found, using default values
Using no-op. Files in puppet-profile_base may be changed but will not be committed.
Files changed:
Files added:


--------------------------------
 ~/src/gitlab/puppet/modulesync_configs  master ?  ls -la modules/*/spec/spec_helper_local.rb
-rw-r--r--  1 cdenneen  staff   405B Jun  6 15:09 modules/puppet-monitoring_scripts/spec/spec_helper_local.rb
-rw-r--r--  1 cdenneen  staff   405B Jun  6 15:09 modules/puppet-pes3backup/spec/spec_helper_local.rb
-rw-r--r--  1 cdenneen  staff   405B Jun  6 15:09 modules/puppet-profile_base/spec/spec_helper_local.rb

NOTE: The above file size changes without "FIles changed:" showing any difference is shown in #120
@DavidS

@timhughes
Copy link

This looks to have been a deliberate change ba191b0

@james-powis
Copy link
Member

There was much discussion for this change in #113

@bittner
Copy link
Contributor

bittner commented May 18, 2020

We probably can close this issue as a "won't fix". Or would that need to be better documented?

Is there an alternative?

Personally, I think, the .erb extension for everything makes it all more difficult. Certainly, from a user perspective, it makes things that could be obvious less transparent. But it seems unlikely that this decision will be undone.

Then again, couldn't we make this a user choice? In theory, it should be feasible to add an option to the ModuleSync configuration whether you use .erb as an extension or not in your project, keeping the current behavior as a default.

Does that sound like something people want? Put your 👍 here.

@ekohl
Copy link
Member

ekohl commented May 18, 2020

The long term idea was that every file with a .erb extension would be templated and all files without an extension are synced without ERB templating.

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

No branches or pull requests

5 participants