Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

symfony:assets:update_version is doing wrong #282

Closed
scourgen opened this Issue · 2 comments

2 participants

@scourgen

my original config.yml:

framework:
    esi:             { enabled: true }
    translator:      { fallback: %locale% }
    secret:          %secret%
    router:
        resource: "%kernel.root_dir%/config/routing.yml"
        strict_requirements: %kernel.debug%
    form:            true
    csrf_protection: true
    validation:      { enable_annotations: true }
    templating:      { engines: ['twig'] } #assets_version: SomeVersionScheme
    default_locale:  %locale%
    trust_proxy_headers: false # Whether or not the Request object should trust proxy headers (X_FORWARDED_FOR/HTTP_CLIENT_IP)
    session:         ~
    templating:
        assets_version:       1
        assets_version_format:  %%s?%%s
        engines:
            - twig

after update_version:

  * 2012-11-26 14:50:09 executing `symfony:assets:update_version'
  * executing "sudo -p 'sudo password: ' sed -i 's/\\(assets_version: \\)\\([a-zA-Z0-9_]*\\)\\(.*\\)$/\\1 \"d7cedcc\"\\3/g' /var/www/my/releases/20121126064640/app/config/config.yml"

I got this:

framework:
    esi:             { enabled: true }
    translator:      { fallback: %locale% }
    secret:          %secret%
    router:
        resource: "%kernel.root_dir%/config/routing.yml"
        strict_requirements: %kernel.debug%
    form:            true
    csrf_protection: true
    validation:      { enable_annotations: true }
    templating:      { engines: ['twig'] } #assets_version:  "d7cedcc"
    default_locale:  %locale%
    trust_proxy_headers: false # Whether or not the Request object should trust proxy headers (X_FORWARDED_FOR/HTTP_CLIENT_IP)
    session:         ~
    templating:
        assets_version:  "d7cedcc"      1
        assets_version_format:  %%s?%%s
        engines:
            - twig

please noticed that assets_version has been inserted instead of been replaced by new variable.

@willdurand
Collaborator

Note that you defined the templating section twice.

@willdurand willdurand closed this in 4a2d523
@scourgen

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.